Zend Framework助手路径问题

时间:2010-02-27 17:41:27

标签: zend-framework helpers

 [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帮助程序的帮助程序路径?

在bootstrap我只有这个:

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;

1 个答案:

答案 0 :(得分:0)