Создала модуль mymodul | Код | symfony doctrine:generate-module frontend mymodule
|
были созданы файлы и папки в каталоге apps/frontend/modules/mymodule. Данные в таблицу ввела 1 запись. Сгенерировала модель | Код | symfony doctrine:build-model
|
При запуске http://localhost:8080/frontend_dev.php/mymodule выскакивает ошибка | Код | 404 | Not Found | sfError404Exception Empty module and/or action after parsing the URL "/mymodule/" (/). stack trace 1.at () in SF_ROOT_DIR\lib\vendor\symfony\lib\controller\sfFrontWebController.class.php line 44 ...
41. 42. if (empty($moduleName) || empty($actionName)) 1. { 2. throw new sfError404Exception(sprintf('Empty module and/or action after parsing the URL "%s" (%s/%s).', $request->getPathInfo(), $moduleName, $actionName)); 1. } 2. 3. // make the first request1.at sfFrontWebController->dispatch()in SF_ROOT_DIR\lib\vendor\symfony\lib\util\sfContext.class.php line 170 ... */ public function dispatch() { $this->getController()->dispatch(); }
/**1.at sfContext->dispatch()in SF_ROOT_DIR\web\frontend_dev.php line 13 ...require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');
$configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'dev', true); sfContext::createInstance($configuration)->dispatch();
symfony settings ... sf_admin_module_web_dir: /sfDoctrinePlugin sf_admin_web_dir: /sf/sf_admin sf_app: frontend sf_app_base_cache_dir: 'Z:\portal\cache\frontend' sf_app_cache_dir: 'Z:\portal\cache\frontend\dev' sf_app_config_dir: 'Z:\portal\apps\frontend\config' sf_app_dir: 'Z:\portal\apps\frontend' sf_app_i18n_dir: 'Z:\portal\apps\frontend\i18n' sf_app_lib_dir: 'Z:\portal\apps\frontend\lib' sf_app_module_dir: 'Z:\portal\apps\frontend\modules' sf_app_template_dir: 'Z:\portal\apps\frontend\templates' sf_apps_dir: 'Z:\portal\apps' sf_cache: false sf_cache_dir: 'Z:\portal\cache' sf_charset: utf-8 sf_check_lock: false sf_compressed: false sf_config_cache_dir: 'Z:\portal\cache\frontend\dev\config' sf_config_dir: 'Z:\portal\config' sf_csrf_secret: 1b1783c5ae00e1d90926fb970d5df01c40c8ab98 sf_data_dir: 'Z:\portal\data' sf_debug: true sf_default_culture: en sf_enabled_modules: - default sf_environment: dev sf_error_404_action: error404 sf_error_404_module: default sf_error_reporting: 32767 sf_escaping_method: ESC_SPECIALCHARS sf_escaping_strategy: true sf_etag: false sf_file_link_format: null sf_i18n: false sf_i18n_cache_dir: 'Z:\portal\cache\frontend\dev\i18n' sf_lib_dir: 'Z:\portal\lib' sf_log_dir: 'Z:\portal\log' sf_logging_enabled: true sf_login_action: login sf_login_module: default sf_module_cache_dir: 'Z:\portal\cache\frontend\dev\modules' sf_module_disabled_action: disabled sf_module_disabled_module: default sf_no_script_name: false sf_orm: doctrine sf_plugins_dir: 'Z:\portal\plugins' sf_root_dir: 'Z:\portal' sf_secure_action: secure sf_secure_module: default sf_standard_helpers: - Partial - Cache sf_symfony_lib_dir: 'Z:\portal\lib\vendor\symfony\lib' sf_template_cache_dir: 'Z:\portal\cache\frontend\dev\template' sf_test_cache_dir: 'Z:\portal\cache\frontend\dev\test' sf_test_dir: 'Z:\portal\test' sf_upload_dir: 'Z:\portal\web\uploads' sf_use_database: true sf_web_debug: true sf_web_debug_web_dir: /sf/sf_web_debug sf_web_dir: 'Z:\portal\web'
request ... options: path_info_key: PATH_INFO path_info_array: SERVER http_port: null https_port: null default_format: null logging: '1' relative_url_root: null formats: { txt: text/plain, js: [application/javascript, application/x-javascript, text/javascript], css: text/css, json: [application/json, application/x-json], xml: [text/xml, application/xml, application/x-xml], rdf: application/rdf+xml, atom: application/atom+xml } no_script_name: false parameterHolder: { } attributeHolder: { }
response ... status: code: 404 text: 'Not Found' options: http_protocol: HTTP/1.1 logging: '1' charset: utf-8 send_http_headers: true content_type: 'text/html; charset=utf-8' cookies: { } httpHeaders: Content-Type: 'text/html; charset=utf-8' javascripts: { } stylesheets: { } metas: { } httpMetas: { }
user ... options: auto_shutdown: false culture: null default_culture: en use_flash: true logging: '1' timeout: 1800 attributeHolder: { } culture: en
global vars ...
|
Кто подскажет?Спасибо.
|