セッションコントローラのアクションメソッド内で設定 $this->getUser()->setAttribute('mesg', 'エラーが発生しました');
取得 $mesg = $this->getUser()->getAttribute('mesg');
確認 $mesg = $this->getUser()->hasAttribute('mesg');
削除 $this->getUser()->getAttributeHolder()->remove('mesg');
テンプレートで <html><?php $sf_user->getAttribute('mesg')?></html>
参考http://symfony.xrea.jp/1.2/book/06-Inside-the-Controller-Layer.html#user.session |
|