私のアプリケーション構造は次のようなものです:
- 応用
- モジュール
- デフォルト
- 学生
- コントローラー
- フォーム
- StudentParent.php
- モデル
- ビュー
- Boostrap.php
- モジュール
私は学生モジュールのformsフォルダ内にstudentParent.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;
}
}