kazunobu ichihashi
bobch****@gmail*****
2005年 10月 19日 (水) 12:49:37 JST
市橋です。 エラーメッセージですが、ErrorListクラスを使う場合、 ActionChain内で「アクションクラス名」で保持しています。 たとえば、アクションクラスBのビューでアクションクラスCへ遷移する場合、 アクションクラスBで設定したエラーをアクションクラスCで取得するには ActionChainクラスのgetErrorListByName()メソッドを使えばいいと思います。 (若干小細工がいるということですね) 例) class C{ function execute() { $container =& DIContainerFactory::getContainer(); $actionChain =& $container->getComponent("ActionChain"); $errorListOfActionB=&$actionChain->getErrorListByName("ActionB"); } 間違ってたらフォローお願いします。 05/10/19 に Yoshitake Hatada<yhata****@zeus*****> さんは書きました: > ただ、この場合、入力チェックのエラーメッセージを > messages クラスを使って表示というのが出来なくなるのですかね? -- Kazunobu Ichihashi(bobchin) <bobchin_ryu****@bb*****> Wiki http://bobchin.ddo.jp/wiki/ Diary http://d.hatena.ne.jp/bobchin/