我在 MVC 中的文件夹命名有问题,这就是为什么会出现以下错误。
Fatal error: Uncaught exception 'Zend_View_Exception' with message 'script'browsing-
history/browsinghistory.phtml' not found in path (C:/xampp/htdocs/test_app/application
/views\scripts/)' in C:\xampp\htdocs\test_app\library\Zend\View\Abstract.php:988 Stack
trace: #0 C:\xampp\htdocs\test_app\library\Zend\View\Abstract.php(884):
Zend_View_Abstract->_script('browsing-histor...') #1 C:\xampp\htdocs\test_app\library
\Zend\Controller\Action\Helper\ViewRenderer.php(900):
Zend_View_Abstract->render('browsing-histor...') #2 C:\xampp\htdocs\test_app\library
\Zend\Controller\Action\Helper\ViewRenderer.php(921):
Zend_Controller_Action_Helper_ViewRenderer->renderScript('browsing-histor...', NULL)
#3 C:\xampp\htdocs\test_app\library\Zend\Controller\Action\Helper
\ViewRenderer.php(960): Zend_Controller_Action_Helper_ViewRenderer->render() #4
C:\xampp\htdocs\test_app\library\Zend\Controller\Action\HelperBroker.php(277):
Zend_Controller_Action_Helper_ViewRenderer->postDispatch() #5 C:\xampp\htdocs\test_app
\library\Zend\Controller\Action.php in C:\xampp\htdocs\test_app\library\Zend\View
\Abstract.php on line 988
这是我的控制器
class BrowsingHistoryController extends Zend_Controller_Action{//my actions }
这是我的行动
public function browsinghistoryAction(){}
这是我在脚本中的文件夹结构
scripts
->BrowsingHistory
->browsinghistory.phtml
我为我的控制器做了同样的事情,工作正常不知道为什么这不起作用?任何的想法