私は次のような構造を持っています:
/application
.....
--/modules
----/structure
------/controllers
--------/indexController.php
------/forms
--------/Department.php //here class Structure_Form_Department extends Zend_Form
indexController.phpで
...
public function saveAction()
{
$request = $this->getRequest();
$form = new Structure_Form_Department();//<-- error
....
}
と私はエラーが発生します
致命的なエラー:クラス'Structure_Form_Department'が見つかりません
しようとするとzf enable form module
-受け取る:
An Error Has Occurred
This project already has forms enabled.
これは設定のような問題だと思います...しかし、私が何をする必要があるのか理解していません...
編集1
ここで良い解決策を見つけました
しかし、何らかの方法で、zendは_init...
デフォルトのbootstrap.php...から関数の実行を繰り返し開始します。