我正在CakePHP 1.2应用程序中工作,我无法控制/ app目录,并将我的视图文件夹重定位到/ my/path/to/mycomponent/views,并且可以呈现我的意见通过设置我的控制器的默认视图路径Relocating Cake的默认布局文件夹
var $viewPath = "mycomponent/views";
我在/ path一些布局(包括basic.ctp)/到/ myComponent的/视图/布局
有没有办法来渲染我里面的观点具体布局?
从我的控制器调用这给了我一个找不到网页错误:
function index()
{
$this->autoLayout = true;
$this->pageTitle = 'Browse items';
$this->render("browse", "basic");
// also tried: $this->render("browse", "/path/to/mycomponent/views/layouts/basic.ctp");
}