protected function setView($action)
    {
        if (View::exists($this->className . '/' . $action)) {
            $this->view = new View($this->className . '/' . $action);
        }
    }
protected function setView($action)
    {
        if (View::exists($this->className . '/' . $action)) {
            $this->view = new View($this->className . '/' . $action);
        }
    }
protected function setView ( $ action ) { if ( View :: exists ( $ this -> className . '/' . $ action ) ) { $ this -> view = new View ( $ this -> className . '/' . $ action ) ; } }
Set the view that this controller action should use.
@param $action
Set the view that this controller action should use .