Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [SF2][SF] Routing - adresy {slug} w ramach 3 roznych kontrolerow
swiezak
post
Post #1





Grupa: Zarejestrowani
Postów: 159
Pomógł: 0
Dołączył: 21.08.2011

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


Pytanie dotyczy zagadnienia routingu w SF 2.
Czy jest mozliwosc ustawienia adresow url dla kategorii, marek i produktow w taki sposob, aby byly one w formacie: http://nazwadomeny/{slug} w ramach 3 roznych kontrolerow, tak jak na ponizszym listingu?

  1. _brand:
  2. pattern: /{slug}
  3. defaults: { _controller: MlFrontendBundle:Brand:showbrand, slug: index }
  4.  
  5. _product:
  6. pattern: /{slug}
  7. defaults: { _controller: MlFrontendBundle:Product:showproduct, slug: index }
  8.  
  9. _category:
  10. pattern: /{slug}
  11. defaults: { _controller: MlFrontendBundle:Category:showcategory, slug: index }


Ten post edytował swiezak 14.01.2016, 13:01:17
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: 25.12.2025 - 19:35