为了提供 ajax 操作,我执行以下操作:
public function preDispatch()
{
if ($this->getRequest()->isXmlHttpRequest()) {
Zend_Controller_Action_HelperBroker::removeHelper('viewRenderer');
Zend_Layout::getMvcInstance()->disableLayout();
}
}
但响应带有以下错误:在路径中找不到脚本'async/tax.phtml' (/var/www/app/trunc/application/views/scripts/:./views/scripts/)