2016-05-31 70 views
0

我正在做一個ajax調用控制器,我不知道想錯了,這個錯誤即將到來。 有人可以解釋這個錯誤。不能嵌套佔位符捕獲相同的佔位符'

Fatal error: Uncaught exception 'Zend\View\Exception\RuntimeException' with message 'Cannot nest placeholder captures for the same placeholder' in E:\xampp\htdocs\xnspy-web-app\xnspy-cp\vendor\ZF2\View\Helper\Placeholder\Container\AbstractContainer.php:141 Stack trace: #0 E:\xampp\htdocs\xnspy-web-app\xnspy-cp\module\Application\view\partial\global-head.phtml(5): Zend\View\Helper\Placeholder\Container\AbstractContainer->captureStart() #1 E:\xampp\htdocs\xnspy-web-app\xnspy-cp\vendor\ZF2\View\Renderer\PhpRenderer.php(506): include('E:\xampp\htdocs...') #2 E:\xampp\htdocs\xnspy-web-app\xnspy-cp\vendor\ZF2\View\Helper\Partial.php(61): Zend\View\Renderer\PhpRenderer->render('partial/global-...', NULL) #3 [internal function]: Zend\View\Helper\Partial->__invoke('partial/global-...') #4 E:\xampp\htdocs\xnspy-web-app\xnspy-cp\vendor\ZF2\View\Renderer\PhpRenderer.php(399): call_user_func_array(Object(Zend\View\Helper\Partial), Array) #5 E:\xampp\htdocs\xnspy-web-app\xnspy-cp\module\Application\view\layout\ajax-layout.phtml(3): Z in E:\xampp\htdocs\xnspy-web-app\xnspy-cp\vendor\ZF2\View\Helper\Placeholder\Container\AbstractContainer.php on line 141

+0

請在您的_ajax-layout.phtml_文件中添加一些代碼,其中出現錯誤 – blackbishop

+0

感謝您的關注...我已經解決了它 –

回答

0

此錯誤來當u連續

佔位符( '腳本')打開capturestart兩次 - > captureStart(); ?> placeholder('script') - > captureStart(); ?>

eleminate one問題解決。