如何添加另一个文件夹级别来发送框架自动加载器


how to add another folder level to send framework autoloader?

我有这样一个简单的设置

-controllers
    IndexController.php
          here somewhere i call new Application_Model_Sites_Sites()
+layouts
-models
    -sites
        Sites.php
           class Application_Model_Sites_Sites
           { .. }
+library
+public

,得到Fatal error: Class 'Application_Model_Sites_Sites' not found in ..

奇怪的是,在xampp在windows下,它工作完美,但当我把它放在linux服务器上,我得到的错误

我想我需要告诉zend关于这些子文件夹,但我有一个印象,它应该知道它们,因为我在类名

中使用它们

知道我错过了什么吗?

application.ini
    [production]
    phpSettings.display_startup_errors = 1
    phpSettings.display_errors = 1
    includePaths.library = APPLICATION_PATH "/../library"
    bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
    bootstrap.class = "Bootstrap"
    appnamespace = "Application"
    resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
    resources.frontController.params.displayExceptions = 1
    resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts"
    resources.view[]=
    resources.view.helperPath.Zend_View_Helper = APPLICATION_PATH "/views/helpers"
    [staging : production]
    [testing : production]

和by bootstrap现在为空

不应该是Modelss - Application_Models_Sites_Sites吗?