Zend Framework: Autoloading a Class Library

后端 未结 4 2137
说谎
说谎 2020-12-15 12:10

I\'ve got a class library in defined here .../projectname/library/Me/Myclass.php defined as follows:


I\'

4条回答
  •  心在旅途
    2020-12-15 12:43

    I think @smack0007 means replace the contents of your _initAutoload method with Zend_Loader_Autoloader::getInstance()->registerNamespace('Me_'); so it looks like this:

    protected function _initAutoload()
    {
        Zend_Loader_Autoloader::getInstance()->registerNamespace('Me_');
    }
    

提交回复
热议问题