|
|||
|
Just wondering if anyone has encountered this problem:
Compile Error: zend\library\Zend\Controller\Front.php line 26 - require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'Zend/Controller/Action/HelperBroker.php' (include_path='.;c:\php\includes;C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\zend\library\Zend;C:\P rogram Files\Zend\ZendStudio-5.5.0\bin\ZendFramework\library;C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\zend\library\Zend\Cont roller\Action;C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\zend\library\Zend\Cont roller\Action\Helper;...) I've been trying to follow the instruction on the Zend framework documents: Zend Framework: Documentation The strange thing is in the controller Front.php the Loader.php is loaded which is the require_once statement immediately before the require_once statement HelperBroker.php. The HelperBroker should be found since it's in my include path but it's not loading. I tried to include the path in my php.ini file as denoted above but it's not opening. Here's my index.php file: <?php require_once 'zend/library/Zend/Controller/Front.php'; Zend_Controller_Front::run('zend/application/controllers'); ?> Any one encounter this problem? Any help is appreciated. ![]() |
|
|||
|
Did you set your include_path?
Quote:
I have my include path set like this Code:
set_include_path(dirname(__FILE__) . '/library'. PATH_SEPARATOR . './application/models/' . PATH_SEPARATOR . get_include_path());
date_default_timezone_set('America/Chicago');
Code:
require'Zend/loader.php'; Zend_Loader::registerAutoload(); Code:
$front = Zend_Controller_Front::getInstance();
$front->setControllerDirectory('/path/to/app/controllers');
$front->dispatch;
|
|
||||
|
You have it in the include_path, but it is not right. ZF needs the include path setup to point to the directory containing the "Zend" folder eg libraries/ which contains Zend
ZF takes a namespaced approach (Zend_Controller_Front) -> Zend/Controller/Front.php
__________________
Zym Framework - A Zend Framework extension library w/ demo app SpotSec Blog: http://spotsec.com/blog |
![]() |
| Thread Tools | |
| Display Modes | |
|
|