Php Zend库文件夹外的Zend“Pluginpaths”

Php Zend库文件夹外的Zend“Pluginpaths”,php,zend-framework,plugins,Php,Zend Framework,Plugins,在我的Zend项目中,我构建了LS_Controller_Plugin_LangSelector。它位于以下文件夹结构中 /library /LS /Controller /Plugin LangSelector.php 在我的config.ini文件中,我刚刚添加了以下几行,一切都像一个charme autoloaderNamespaces.ls="LS_" resources.frontController.plugins.LangSelector="LS_

在我的Zend项目中,我构建了LS_Controller_Plugin_LangSelector。它位于以下文件夹结构中

/library
 /LS
   /Controller
     /Plugin
       LangSelector.php
在我的config.ini文件中,我刚刚添加了以下几行,一切都像一个charme

autoloaderNamespaces.ls="LS_"
resources.frontController.plugins.LangSelector="LS_Controller_Plugin_LangSelector"
如果现在我想将插件的位置更改为zend库之外的位置,该怎么办? 我应该在配置文件中添加哪些神奇的词语

谢谢

Luca

在您的index.php中

set_include_path(implode(PATH_SEPARATOR, array(
    dirname(dirname(__FILE__)) . '/your new path containing the plugin',
    get_include_path(),
)));

创建类时,请确保遵循名称空间:

我只想编辑配置文件..您认为可能吗?:@luca值得一读,请通读..:它不涉及库外的路径