Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-30-2007, 06:08 PM
Junior Member
 
Join Date: Dec 2007
Location: Vancouver
Posts: 1
Smile Failed opening required 'Zend/Controller/Action/HelperBroker.php'

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-31-2007, 04:41 AM
Junior Member
 
Join Date: Dec 2007
Posts: 9
Send a message via MSN to blurphp Send a message via Yahoo to blurphp
Default

Did you set your include_path?

Quote:
<?php
require_once 'zend/library/Zend/Controller/Front.php';
Zend_Controller_Front::run('zend/application/controllers');
?>

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');
I use the Autoloader to load the classes so they are available
Code:
require'Zend/loader.php';
Zend_Loader::registerAutoload();
Then all I do is call the class and everything is there
Code:
$front = Zend_Controller_Front::getInstance();
$front->setControllerDirectory('/path/to/app/controllers');
$front->dispatch;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-31-2007, 09:24 PM
SpotSec's Avatar
Senior Member
 
Join Date: Feb 2007
Location: United States
Posts: 121
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:04 PM.