我正在向控制器发出ajax调用,我不知道想要出错,这个错误即将来临。 有人可以解释这个错误。
致命错误:未捕获的异常'Zend \ View \ Exception \ RuntimeException',并在E:\ xampp \ htdocs \ xnspy-web-app \ xnspy-cp \ vendor \ ZF2中显示消息'无法为同一占位符嵌套占位符捕获' \ View \ Helper \ Placeholder \ Container \ AbstractContainer.php:141堆栈跟踪:#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 [内部函数]: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) ),数组)#5 E:\ xampp \ htdocs \ xnspy-web-app \ xnspy-cp \ module \ Application \ view \ layout \ ajax-layout.phtml(3):Z在E:\ xampp \ htdocs \ xnspy-web-app \ xnspy-cp \ vendor \ ZF2 \ View \ Helper \ Placeholder \ Container \ AbstractContainer.php on第141行
答案 0 :(得分:0)
当你连续两次打开capturestart
时会出现此错误 占位符('脚本') - > captureStart(); ?> 占位符('脚本') - > captureStart(); ?>腾出一个,问题就解决了。