ajax javascript数据不显示在zend框架中并显示错误

时间:2016-02-09 10:50:45

标签: zend-framework

我希望在zend框架中使用ajax / javascript从数据库中获取数据。但错误显示..

  

致命错误:带消息的未捕获异常'Zend_View_Exception'   'script'attendancelist / monthleave.html'在路径中找不到   (./application/views/scripts/)'in   /var/www/html/projects_prolive/library/Zend/View/Abstract.php:988   堆栈跟踪:#0   /var/www/html/projects_prolive/library/Zend/View/Abstract.php(884):   Zend_View_Abstract-> _script('attendancelist / ...')#1   /var/www/html/projects_prolive/library/Zend/Controller/Action/Helper/ViewRenderer.php(900):   Zend_View_Abstract-> render('attendancelist / ...')#2   /var/www/html/projects_prolive/library/Zend/Controller/Action/Helper/ViewRenderer.php(921):   Zend_Controller_Action_Helper_ViewRenderer->的renderScript( 'attendancelist / ...',   NULL)#3   /var/www/html/projects_prolive/library/Zend/Controller/Action/Helper/ViewRenderer.php(960):   Zend_Controller_Action_Helper_ViewRenderer-> render()#4   /var/www/html/projects_prolive/library/Zend/Controller/Action/HelperBroker.php(277):   Zend_Controller_Action_Helper_ViewRenderer-> postDispatch()#5   / var / www / html / projects_prolive / library / Zend / Controller in   /var/www/html/projects_prolive/library/Zend/View/Abstract.php上线   988

如何修复它?

1 个答案:

答案 0 :(得分:2)

尝试使用停用布局 $this->_helper->viewRenderer->setNoRender(true); $this->view->layout()->disableLayout();