3
这里是我的代码:Zend的视图脚本路径设置
$this->getView()->setScriptPath($templatePath);
$this->_helper->viewRenderer($page);
此代码是在Core_PageController视图操作处理。我现在的问题是,由于page是控制器,因此view对象在$templatePath/page
中查找我的脚本文件。我想要的是查看对象仅查找$templatePath
目录路径(不包含页面目录);
感谢您的帮助!