luca
luca

Reputation: 37136

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 the 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

Upvotes: 0

Views: 1086

Answers (2)

Celmaun
Celmaun

Reputation: 24752

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.

Upvotes: 1

coolguy
coolguy

Reputation: 7954

Your path is wrong make sure you do like this

includePaths.library = APPLICATION_PATH "/../library"

Upvotes: 1

Related Questions