Modüler Uygulama Zend Framework 1.10 varsayılan klasör model sınıfı görmüyor

0 Cevap php

i bir sonraki klasör yapısı zf sürümü 1.10 var

/application
 /config
  application.ini
 /Forms
 /Layouts
 /modules
    /default
     /controllers
     /models
      manufactur.php
     /view
     bootstrap.php
 bootrstrap.php

apllication.ini sonraki içeriği var

includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules/"
resources.modules = ""

/ Modules / bootstrap.php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
        protected function _initAutoload()
        {
                $resourceLoader = new Zend_Loader_Autoloader_Resource(array(
                'basePath' => APPLICATION_PATH.'/modules/default' ,
                'namespace'=> '',
                'resourceTypes'=>array(
                'form'=>array(
                'path'=>'Forms',
                'namespace'=>'Form')))
                );
                 }
}

/ Modules / default / bootstrap.php

class Default_Bootstrap extends Zend_Application_Module_Bootstrap
{

}

/ Default / modelleri / manufactur.php

class Manufactur extends Zend_Db_Table_Abstract
{
    protected $_name = 'manufacturers';
    protected $_primary = 'id';

}

When i in any controller trying $a = new Manufactur() i see Error not find class

when i before call use include 'path/to/manufactur.php' all work fine

Neden herhangi bir fikir olabilir?

0 Cevap