przewiń do treści

Symfony w przykładach

Włodzimierz Gajda

indeks:
  url:   /index.html
  param: { module: glowny, action: powitanie }

homepage:
  url:   /
  param: { module: glowny, action: powitanie }

film_show:
  url:   /film/:slug.html
  param: { module: film, action: show }

aktor_show:
  url:   /aktor/:slug.html
  param: { module: aktor, action: show }

film_index:
  url:   /filmy.html
  param: { module: film, action: index }

aktor_index:
  url:   /aktorzy.html
  param: { module: aktor, action: index }

Listing 16.3. Reguły translacji adresów URL

Rozdział 16. Relacje n:m

listing-16-03.txt