フロントエンド モジュールとバックエンド モジュールを使用してモジュール式の Zend Framework プロジェクトをセットアップしようとしていますが、うまく動作しません。public
Web ブラウザで自分のディレクトリにアクセスすると、次のエラー メッセージが表示されます。
致命的なエラー: /usr/share/ZendFrameworkCli/library/Zend/Controller/Dispatcher/Standard.php:248 でメッセージ 'Invalid controller specified (error)' を含む例外 'Zend_Controller_Dispatcher_Exception' をキャッチできませんでした: 248 スタック トレース: #0 /usr/share/ZendFrameworkCli /library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 /usr/share/ZendFrameworkCli/library/Zend/Application/Bootstrap/Bootstrap.php( 97): Zend_Controller_Front->dispatch() #2 /usr/share/ZendFrameworkCli/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run() #3 /Users/Martin/Dropbox/Repositories/realestatecms/public/ index.php(25): Zend_Application->run() #4 {main} 次の例外 'Zend_Controller_Exception'「無効なコントローラーが指定されました (エラー)#0 /usr/share/ZendFrameworkCli/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) in /usr/」というメッセージが表示されます336 行目の share/ZendFrameworkCli/library/Zend/Controller/Plugin/Broker.php
Zend Framework コマンド ライン ツールを使用して 2 つのモジュールを作成しました。これらの 2 つのmodule
ディレクトリには、それぞれBootstrap.php
呼び出された と に 2 つのクラスがあります。Frontend_Bootstrap
Backend_Bootstrap
私のapplication.ini
ファイルは次のようになります。
[production]
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
resources.frontController.controllerDirectory = APPLICATION_PATH "/frontend/controllers"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.frontController.params.displayExceptions = 0
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
...
私は何を間違えましたか?ブラウザでhttp://example.com/publicFrontend_IndexController()
にアクセスしたときに実行するにはどうすればよいですか?
編集: Ivan の回答に従って構成ファイルを更新すると、次のエラー メッセージが表示されます。
致命的なエラー: /usr/share/ZendFrameworkCli/library/Zend/Application/Resource/Modules.php:83 スタックで、「モジュール "default" のブートストラップ ファイルが見つかりましたが、ブートストラップ クラス "Default_Bootstrap" が見つかりません」というメッセージを含む例外 'Zend_Application_Resource_Exception' がキャッチされませんでした:83 スタックtrace: #0 /usr/share/ZendFrameworkCli/library/Zend/Application/Bootstrap/BootstrapAbstract.php(683): Zend_Application_Resource_Modules->init() #1 /usr/share/ZendFrameworkCli/library/Zend/Application/Bootstrap/BootstrapAbstract .php(626): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('モジュール')
2 /usr/share/ZendFrameworkCli/library/Zend/Application/Bootstrap/BootstrapAbstract.php(586):
Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap(NULL) #3 /usr/share/ZendFrameworkCli/library/Zend/Application.php(355): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap(NULL) #4 /Users/Martin/Dropbox/Repositories/realestatecms/public/index .php(25): Zend_Application->bootstrap() #5 {main} が /usr/share/ZendFrameworkCli/library/Zend/Application/Resource/Modules.php の 83 行目でスローされました
Default_Bootstrap
クラス名としての由来は? !