i have started to learn symfony framework by reading joobet-propel book.i was in URL Routing chapter ,i tried every sample in my sample application.But it gives me error. Compeletely My issue:
a small part of routing.yml file:
bookmark_deneme_user:
url: /post/:title_slug/:id/:summary_slug
class: sfPropelRoute
options: { model: Bookmark, type: object }
param: { module: post, action: show }
requirements:
id: \d+
sf_method: [get]
i have an Object Bookmark with title,summary,id and url, and i want to show one bookmark in detail with the url title/id/summary ,so i wrote abovementioned yml and iused "echo url_for('bookmark_deneme_user', $bookmark)" in xxxSuccess.php URL in Page is true but when i click to url for showing the bookmark in detail. it gives me this error:
404 | Not Found | sfError404Exception
Action "post/deneme" does not exist.
"deneme"is title of selected bookmark ,why it dont use id property .how can i resolve that problem?your opinion is of great value for me to learning this:)