如果要重用的view文件就在/app/view目录的这个controller对应的目录下面
如果不是在这个controller对应的默认目录下面则:
参考链接:[url]http://www.lost-in-code.com/programming/php-code/cakephp-change-view-file-from-controller/[/url]
$this->render('categorylinks');
如果不是在这个controller对应的默认目录下面则:
$this->viewPath('others');
$this->render('categorylinks');
参考链接:[url]http://www.lost-in-code.com/programming/php-code/cakephp-change-view-file-from-controller/[/url]