Zend Framework 帮助程序路径问题

发布于 2024-08-22 19:54:57 字数 2683 浏览 8 评论 0原文

 [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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文