내 응용 프로그램의 구조는 다음과 같다 :자동로드 모델은, 젠드 프레임 워크 내부 모듈을 형성
- 응용 프로그램
- 모듈
- 기본
- 학생
- 컨트롤러
- 형태
- studentParent.php
- 모델
- 전망
- Boostrap.php
- 모듈
class Student_Form_studentParent extends Zend_Dojo_Form{
}
, 나는 내가 학생 모듈 내부 Bootstrap.php을 배치 한 클래스를 찾을 수 없습니다 오류 를 얻을.
class Student_Bootstrap extends Zend_Application_Module_Bootstrap
{
}
가 여기 내 application.ini 파일 구성의
resources.frontController.params.displayExceptions = 0
resource.modules=""
resources.view = ""
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts"
resources.layout.layout = "main_template"
내 Bootstrap.php 파일 :
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
protected function _initDefaultModuleAutoloader()
{
$moduleLoader = new Zend_Application_Module_Autoloader(
array(
"namespace" => '',
"basePath" => APPLICATION_PATH.'/modules/default'
)
);
Zend_Controller_Action_HelperBroker::addPrefix('App_Action_Helper');
return $moduleLoader;
}
}
실제로 모듈 자동 공급기는 모듈 디렉토리를 가리켜 야합니다. –