I am using symfony 1.4 and I have the following route for my / -Route:
homepage: url: / class: sfDoctrineRoute options: { model: ContentPage, type: object} param: { module: page, action: show}
and my show action is as follows:
class pageActions extends sfActions { public function executeShow(sfWebRequest $request) { $this->content_page = $this->getRoute()->getObject(); $this->forward404Unless($this->content_page); $this->forward404Unless($this->content_page->getPublished()); } }
It works, but it always selects the first record in the ContentPage-Table. Is there a way to pass a "Doctrine-Select-Parameter" inside routing.yml to use a specific identifier or so?
Regards, UHU.
source share