![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 9 Pomógł: 1 Dołączył: 30.10.2008 Ostrzeżenie: (0%) ![]() ![]() |
Posiadam wersje sandbox, stworzyłem nowy moduł o nazwie modul.
Skonfigurowałem plik routing.yml. #my rules costam: url: /modul param: { module: modul, action:index } # default rules homepage: url: / param: { module: default, action: index } default_symfony: url: /symfony/:action/* param: { module: default } default_index: url: /:module param: { action: index } default: url: /:module/:action/* po wpisaniu localhost/sf_sandbox/web/frontend_dev.php/modul Pokazuje sie komunikat że nie można znaleźć tej stony. Co zrobiłem nie tak ? |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 9 Pomógł: 1 Dołączył: 30.10.2008 Ostrzeżenie: (0%) ![]() ![]() |
Mam taki moduł, zresztą jak wpiszę localhost/sf_sandbox/web/frontend_dev.php to z taką konf. jaka podałem działa ok natomiast gdy wpisuje localhost/sf_sandbox/web/frontend_dev.php/modul nie działa więc chyba rewrite nie działa !
w httpd.ini mam [ISAPI_Rewrite] # Defend your computer from some worm attacks RewriteRule .*(?:global.asa|default\.ida|root\.exe|\.\.).* . [F,I,O] # we skip all files with .something except .html RewriteCond URL /sf_sandbox/.*\..+$ RewriteCond URL (?!/sf_sandbox/.*\.html$).* RewriteRule /sf_sandbox/(.*) /sf_sandbox/$1 [L] # we keep the .php files unchanged RewriteRule /sf_sandbox/(.*\.php)(.*) /sf_sandbox/$1$2 [L] # finally we redirect to our front web controller RewriteRule /sf_sandbox/(.*) /sf_sandbox/index.php [L] w settings.yml all: .settings: relative_url_root: /sf_sandbox path_info_key: HTTP_X_REWRITE_URL Wie ktoś czy muszę dodać coś jeszcze (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) żeby to działało poprawnie (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) |
|
|
![]() ![]() |
![]() |
Aktualny czas: 10.10.2025 - 05:55 |