0

我有这个简单的设置

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

奇怪的是,在windows中的xampp下它工作得很好,但是当我把它放在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]

并且通过引导程序现在是空的

4

1 回答 1

0

不应该是Models-sApplication_Models_Sites_Sites

于 2013-04-26T02:57:01.283 回答