Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Symfony] problem z routingiem
harvesterix
post
Post #1





Grupa: Zarejestrowani
Postów: 74
Pomógł: 0
Dołączył: 17.09.2009

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


Mam problem z wywołaniem stronki na localhoscie, plik routingu:

  1. # default rules
  2. homepage:
  3. url: /
  4. param: { module: main, action: index }
  5.  
  6. #default_index:
  7. # url: /:module
  8. # param: { action: index }
  9.  
  10. #default:
  11. # url: /:module/:action/*


po zakomentowaniu domyslnych sciezek, i wpisaniu w przegladarce stronka.localhost/frontend_dev.php wywala mi 500 internal server error z nastepujaca informacja: Unable to find a matching route to generate url for params "array ( 'action' => 'show', 'module' => 'main', 'id' => '1',)".

Skad ten blad przeciez nie wpisalem zadnej nazwy modulu (ok domyslnie main), ale skad akcja show i jakies id questionmark.gif
Dodam ze po odkomentowaniu domyslnych sciezek(default_index i default) wszystko jest ok

Ten post edytował harvesterix 20.10.2009, 11:29:14
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 22.08.2025 - 07:53