4
を渡す:のsymfony:sfDoctrineRouteは、私はsymfonyの1.4を使用していると私は私の/ -routeのためのルートを以下している追加のパラメータ
homepage:
url: /
class: sfDoctrineRoute
options: { model: ContentPage, type: object}
param: { module: page, action: show}
と私のショーアクションは次のようになります。
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());
}
}
それは動作しますが、常にContentPage-Tableの最初のエントリを選択します。 routing.yml内に特定のIDなどを使用するために "Doctrine-Select-Parameter"を渡す方法はありますか?
よろしくお願いします。 uhu。