会員情報をページに表示したい。
これが私のrouting.yml
member_show:
url: /membres/profil/:id
class: sfDoctrineRoute
options: { model: sfGuardUser, type: object }
param: { module: member, action: show }
これが私のactions.class.php
public function executeShow(sfWebRequest $request)
{
if($this->getUser()->isAuthenticated())
{
$this->member = $this->getRoute()->getObject();
}
else
{
$this->redirect('@homepage');
}
}
しかし、私はこのエラーが発生します:
「sfGuardUser」の不明なレコード プロパティ/関連コンポーネント「user」
スタック トレースは次のとおりです。