Jump to content

problem with Zend Framework


next

Recommended Posts

Ok, so i added path to ZF in php ini, but it's not working for some reason. Here's my error message that i get

Warning: require_once(Zend/Loader.php) [function.require-once]: failed to open stream: No such file or directory in G:\PortableApps\WOS\Zend\Controller\Front.php on line 23

 

Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader.php' (include_path='.;G:\PortableApps\WOS\php5\pear;G:\PortableApps\WOS\php5;G:\PortableApps\WOS\php5\curl;G:\PortableApps\WOS\Zend') in G:\PortableApps\WOS\Zend\Controller\Front.php on line 23

I checked and Loader.php and Front.php do exist in those directories. Why is this happening?

Link to comment
https://forums.phpfreaks.com/topic/117868-problem-with-zend-framework/
Share on other sites

Because you added the Zend folder to the include path, PHP is trying to include

 

G:\PortableApps\WOS\Zend\Zend\Loader.php

 

Zend comes in a Library folder (which contains the Zend folder). You should add the library folder to the include_path instead, that way PHP requests the file:

G:\PortableApps\WOS\Libray\Zend\Loader.php

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.