Zend setting includePaths from config file
I have a zend 1.11 app.In the index.php file I have the following:
set_include_path(APPLICATION_PATH.'/library'.PATH_SEPARATOR.get_include_path());
And everything works.Now I want to set the include path from the config file, so I added in it:
includePaths.library = APPLICATION_PATH "/library"
But if I remove the "set_include_path" from t开发者_运维问答he index.php file I receive an error (library-classes are not found)..
How does it work the setting of the include path from config file?
Thanks
Luca
Your path is wrong make sure you do like this
includePaths.library = APPLICATION_PATH "/../library"
You can't do that.
require_once 'Zend/Application.php';
^ See this line? It requires the Zend Framework to be in your include path before even the config file is loaded.
精彩评论