如何在linux cpanel中更改include_path Zend框架?

时间:2013-08-02 11:58:32

标签: zend-framework cpanel

我在Linux服务器上有cpanel域名,我已经将框架工作复制到Public_html我如何更改include_path以启动此框架工作?

1 个答案:

答案 0 :(得分:1)

从项目根目录,编辑./public/index.php:

// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
    realpath(APPLICATION_PATH . '/../library'),
    get_include_path(),
    '/path/to/folder/that/contains/Zend'
)));

这是您要更新的部分。请注意,您要包含包含Zend的FOLDER,而不是其自身的文件夹。我将在PublicHTML中创建一个名为'GlobalLib'的文件夹并将其放在那里。