Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Symfony]routing.yml, Konfiguracja pliku routing
władek22
post
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 ?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
-=Peter=-
post
Post #2





Grupa: Zarejestrowani
Postów: 304
Pomógł: 51
Dołączył: 4.02.2005
Skąd: Kraków

Ostrzeżenie: (0%)
-----


A napewno masz moduł o nazwie "modul", a w nim akcję o nazwie "index"? (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) (tak dla pewności pytam) Może wpisujesz localhost/sf_sandbox/web/frontend_dev.php/modul/ (z ukośnikiem na końcu, bo ta regułka co wpisałeś w routing.yml nie uwzględnia ukośników na końcu)
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 8.10.2025 - 13:38