public function setView($view)
    {
        parent::setView($view);

        if (!$this->_view instanceof LibBaseViewAbstract) {
            $view = AnInflector::isPlural($view) ? 'comments' : 'comment';
            $defaults[] = 'ComBaseView'.ucfirst($view).ucfirst($this->_view->name);
            register_default(array(
                'identifier' => $this->_view,
                'default' => $defaults, ));
        }

        return $this;
    }
public function setView($view)
    {
        parent::setView($view);

        if (!$this->_view instanceof LibBaseViewAbstract) {
            $view = AnInflector::isPlural($view) ? 'comments' : 'comment';
            $defaults[] = 'ComBaseView'.ucfirst($view).ucfirst($this->_view->name);
            register_default(array(
                'identifier' => $this->_view,
                'default' => $defaults, ));
        }

        return $this;
    }
public function setView ( $ view ) { parent :: setView ( $ view ) ; if ( ! $ this -> _view instanceof LibBaseViewAbstract ) { $ view = AnInflector :: isPlural ( $ view ) ? 'comments' : 'comment' ; $ defaults [ ] = 'ComBaseView' . ucfirst ( $ view ) . ucfirst ( $ this -> _view -> name ) ; register_default ( array ( 'identifier' => $ this -> _view , 'default' => $ defaults , ) ) ; } return $ this ; }
Sets the default view to the comment views.

@param stirng $view

@return ComBaseControllerComment
Sets the default view to the comment views .