在管理员中对模块执行编辑操作时遇到致命错误时,如何解决此错误
致命错误:未被捕获的Twig_Error_Loader:无法找到模板 “扩展/模块/linkedin_logintwig.twig”(调查: / opt / lampp / htdocs / eCommerce / admin / view / template)。在 /opt/lampp/htdocs/eCommerce/system/library/template/Twig/Loader/Filesystem.php:215 堆栈跟踪:#0 /opt/lampp/htdocs/eCommerce/system/library/template/Twig/Loader/Filesystem.php(139): Twig_Loader_Filesystem-> findTemplate('extension / modul ...')#1 /opt/lampp/htdocs/eCommerce/system/library/template/Twig/Environment.php(312): Twig_Loader_Filesystem-> getCacheKey('extension / modul ...')#2 /opt/lampp/htdocs/eCommerce/system/library/template/Twig/Environment.php(378): Twig_Environment-> getTemplateClass('extension / modul ...',NULL)#3 /opt/lampp/storage/modification/system/library/template/twig.php(42): Twig_Environment-> loadTemplate('extension / modul ...')#4 /opt/lampp/htdocs/eCommerce/system/library/template.php(51): Template \ Twig-> render('extension / modul ...','1')#5 /opt/lampp/storage/modification/system/engine/loader.php(125): Template-> render('extension / m in /opt/lampp/htdocs/eCommerce/system/library/template/Twig/Loader/Filesystem.php 在第215行
答案 0 :(得分:0)
感谢大家的帮助。我解决了这个错误,这是由于我得到的语法错误。
错误在以下行中,我已将其纠正
$this->response->setOutput($this->load->view('extension/module/linkedin_login', $data));