Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Symfony] routing
Nero12
post
Post #1





Grupa: Zarejestrowani
Postów: 30
Pomógł: 0
Dołączył: 27.08.2006

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


Sorry za male zasmiecanie (3 temat w ciagu 2-3 dni).

Na razie opisze podstawowa rzecz:

wrzucilem takie cos w routing.yml:

list_of_newses:
url: /newses
param: { module: news, action: index }

i gdy wpisuje w pasku adresu: http://localhost/sf_sandbox_3/web/newses dostaje ze nie ma takiej strony
w devie: http://localhost/sf_sandbox_3/web/frontend_dev.php/newses - Action "newses/index" does not exist.

http://localhost/sf_sandbox_3/web i modul z akcja (news/index) oczywiscie istnieja i dzialaja.

Co robie zle / co moze byc przyczyna problemu ? Z dokumentacji korzystam ;/ Nigdy wczesniej nie korzystalem z podobnych mechanizmow (ani nawet z mod_rewrite).
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
ARJ
post
Post #2





Grupa: Zarejestrowani
Postów: 453
Pomógł: 22
Dołączył: 20.09.2004
Skąd: Kraków - NH -

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


Cytat
The routing system parses the routing.yml file from the top to the bottom and stops at the first match. This is why you must add your own rules on top of the default ones

więc umieść u góry własmy wpis.
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: 3.10.2025 - 01:24