Kod
product_show_comments:
url: /product/:random_ID/comments
class: sfDoctrineRoute
options: { model: Product, type: object }
param: { module: product, action: showComments }
requirements: { sf_method: get, random_ID: \w+ }
url: /product/:random_ID/comments
class: sfDoctrineRoute
options: { model: Product, type: object }
param: { module: product, action: showComments }
requirements: { sf_method: get, random_ID: \w+ }
a mimo to po kliknięciu na link localhost/frontend_dev.php/question/jdezwkeb0o59/comments wyskakuje
Action "question/jdezwkeb0o59" does not exist.
Czemu potraktowało te moje id jako nazwę akcji? Przecież uri pasuje do /product/:random_ID/comments.
Znalazłem już odpowiedź. Musiałem przenieść mój product_show_comments na początek, żeby był przed default route i homepage.