Zend Framework 帮助程序路径问题
[2] fopen(/var/www/vhosts/tuthost/httpdocs/application/controllers/helpers/ViewRenderer.php) failed to open stream: No such file or directory
in file: /var/www/vhosts/tuthost/httpdocs/library/Zend/Loader.php
on line: 165
[2] fopen(/var/www/vhosts/tuthost/httpdocs/application/views/helpers/HeadTitle.php) failed to open stream: No such file or directory
in file: /var/www/vhosts/tuthost/httpdocs/library/Zend/Loader.php
on line: 165
[2] fopen(/var/www/vhosts/tuthost/httpdocs/application/views/helpers/FormLabel.php) failed to open stream: No such file or directory
in file: /var/www/vhosts/tuthost/httpdocs/library/Zend/Loader.php
on line: 165
[2] fopen(/var/www/vhosts/tuthost/httpdocs/application/views/helpers/FormSelect.php) failed to open stream: No such file or directory
in file: /var/www/vhosts/tuthost/httpdocs/library/Zend/Loader.php
on line: 165
[2] fopen(/var/www/vhosts/tuthost/httpdocs/application/views/helpers/FormText.php) failed to open stream: No such file or directory
in file: /var/www/vhosts/tuthost/httpdocs/library/Zend/Loader.php
on line: 165
[2] fopen(/var/www/vhosts/tuthost/httpdocs/application/views/helpers/FormTextarea.php) failed to open stream: No such file or directory
in file: /var/www/vhosts/tuthost/httpdocs/library/Zend/Loader.php
on line: 165
[2] fopen(/var/www/vhosts/tuthost/httpdocs/application/views/helpers/FormSubmit.php) failed to open stream: No such file or directory
in file: /var/www/vhosts/tuthost/httpdocs/library/Zend/Loader.php
on line: 165
[2] fopen(/var/www/vhosts/tuthost/httpdocs/application/views/helpers/FormCheckbox.php) failed to open stream: No such file or directory
in file: /var/www/vhosts/tuthost/httpdocs/library/Zend/Loader.php
on line: 165
[2] fopen(/var/www/vhosts/tuthost/httpdocs/application/views/helpers/HeadStyle.php) failed to open stream: No such file or directory
in file: /var/www/vhosts/tuthost/httpdocs/library/Zend/Loader.php
on line: 165
[2] fopen(/var/www/vhosts/tuthost/httpdocs/application/views/helpers/Layout.php) failed to open stream: No such file or directory
in file: /var/www/vhosts/tuthost/httpdocs/library/Zend/Loader.php
on line: 165
什么会导致这种情况?
如何修复捆绑 ZF 助手的助手路径?
在引导程序中我只有这个:
Zend_Controller_Action_HelperBroker::addPath(APPLICATION_PATH . '/controllers/helpers','Helper');
和这个:
$viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper(
'ViewRenderer'
);
$viewRenderer->setView($view);
// Return it, so that it can be stored by the bootstrap
return $view;
[2] fopen(/var/www/vhosts/tuthost/httpdocs/application/controllers/helpers/ViewRenderer.php) failed to open stream: No such file or directory
in file: /var/www/vhosts/tuthost/httpdocs/library/Zend/Loader.php
on line: 165
[2] fopen(/var/www/vhosts/tuthost/httpdocs/application/views/helpers/HeadTitle.php) failed to open stream: No such file or directory
in file: /var/www/vhosts/tuthost/httpdocs/library/Zend/Loader.php
on line: 165
[2] fopen(/var/www/vhosts/tuthost/httpdocs/application/views/helpers/FormLabel.php) failed to open stream: No such file or directory
in file: /var/www/vhosts/tuthost/httpdocs/library/Zend/Loader.php
on line: 165
[2] fopen(/var/www/vhosts/tuthost/httpdocs/application/views/helpers/FormSelect.php) failed to open stream: No such file or directory
in file: /var/www/vhosts/tuthost/httpdocs/library/Zend/Loader.php
on line: 165
[2] fopen(/var/www/vhosts/tuthost/httpdocs/application/views/helpers/FormText.php) failed to open stream: No such file or directory
in file: /var/www/vhosts/tuthost/httpdocs/library/Zend/Loader.php
on line: 165
[2] fopen(/var/www/vhosts/tuthost/httpdocs/application/views/helpers/FormTextarea.php) failed to open stream: No such file or directory
in file: /var/www/vhosts/tuthost/httpdocs/library/Zend/Loader.php
on line: 165
[2] fopen(/var/www/vhosts/tuthost/httpdocs/application/views/helpers/FormSubmit.php) failed to open stream: No such file or directory
in file: /var/www/vhosts/tuthost/httpdocs/library/Zend/Loader.php
on line: 165
[2] fopen(/var/www/vhosts/tuthost/httpdocs/application/views/helpers/FormCheckbox.php) failed to open stream: No such file or directory
in file: /var/www/vhosts/tuthost/httpdocs/library/Zend/Loader.php
on line: 165
[2] fopen(/var/www/vhosts/tuthost/httpdocs/application/views/helpers/HeadStyle.php) failed to open stream: No such file or directory
in file: /var/www/vhosts/tuthost/httpdocs/library/Zend/Loader.php
on line: 165
[2] fopen(/var/www/vhosts/tuthost/httpdocs/application/views/helpers/Layout.php) failed to open stream: No such file or directory
in file: /var/www/vhosts/tuthost/httpdocs/library/Zend/Loader.php
on line: 165
What can cause this?
How to fix helpers path to bundled ZF helpers?
At bootstrap i have only this:
Zend_Controller_Action_HelperBroker::addPath(APPLICATION_PATH . '/controllers/helpers','Helper');
and this:
$viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper(
'ViewRenderer'
);
$viewRenderer->setView($view);
// Return it, so that it can be stored by the bootstrap
return $view;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如何添加视图帮助器目录(zend 框架)
对这个话题有帮助。
How to add a view helper directory (zend framework)
Helped this topic.