开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜