我有一個名爲content的模塊,它在應用程序前端。當我去localhost:8080/frontend_dev.php/content
時,我的頁面顯示正常,沒有錯誤。但沒有/frontend_dev.php
我不能訪問該頁面。Symfony製作階段不工作
什麼可能是錯的?這是我的前端settings.yml:
prod: .settings: no_script_name: true logging_enabled: false dev: .settings: error_reporting: web_debug: true cache: false no_script_name: false etag: false test: .settings: error_reporting: cache: false web_debug: false no_script_name: false etag: false all: .settings: # Form security secret (CSRF protection) csrf_secret: ecca0f5ffb475363f798d55871546583f60f971f # Output escaping settings escaping_strategy: true escaping_method: ESC_SPECIALCHARS # Enable the database manager use_database: true enable_modules: [default, sfGuardAuth]
我得到的是從Web服務器404。清除了symfony緩存,沒有工作。並做了一個chown -R username項目目錄。
我的意思是地址是localhost:8080/module/action
,不適用於任何事情。但它運行在另一臺服務器上,我正在運行一個symfony項目。編輯: 我還是新來symfony。我設法輸入了localhost:8080/index.php/module/action
。但我怎麼能從路由規則中刪除index.php?由於
感謝
兩件事情。 1.清除緩存。 2.看看是否調用了'index.php`。有可能`.htaccess`重定向不起作用。 – lonesomeday 2011-01-29 14:43:35
當你說「但沒有`/ frontend_dev.php`我無法訪問頁面」時,你要求什麼*確切* URL?當你說你不能訪問該頁面時,有什麼問題?錯誤消息,404?如果它是一個404,是Symfony的自定義404還是默認的Web服務器的404? – 2011-01-29 14:48:30