/** * Sets the file to be rendered as the view, if the view is equals to * the name of the action there is no need to call this function * @final * @param string $filename name of the view * @return void * @example * $filename = 'edit' if you want to load the file 'edit.php' on * UserController the file must be at App/User/Views/user/edit.php, * if controller is, e.g. NewsItemsController (cog News), view must be at * App/News/Views/news-items/edit.php */ protected final function render($filename) { $this->_view->setFile($filename); }