テストモジュールがあります。テストモジュールでは、フォームフォルダにフォームがあります。
myproject / application / modules / test / forms / TestForm.php
class Test_Form_TestForm extends Zend_Form {
//form elements
}
myproject / application / modules / test / controllers / TestController.php
class Test_TestController extends Zend_Controller_Action {
public function indexAction() {
$this->view->form = new Test_Form_TestForm(); // this is generating error
}
} // end class
コントローラでのフォームの初期化により、次のエラーが発生しています。
Fatal error: Class 'Test_Form_TestForm' not found in C:\wamp\www\student\application\modules\notification\controllers\NotificationController.php on line 16
コントローラでこのフォームにアクセスできるようにする方法。同じタイプのケースがデフォルトのコントローラーで機能しています。モジュールをForm_インジケーターを使用してブートストラップに登録する必要があることは知っていますが、正確な構文がわかりません。