ちょっと混乱

2006年7月6日 (木曜日) - 18:44:06 by webmaster

ActionClassのPerformメソッドとかで遷移名を指定するんだけれど、例えば、こんな場合。

PHP:
  1. function perform()
  2. {
  3.     if ( $this->af->validate() == 0) {
  4.         return 'hogehoge'
  5.     }
  6.     return 'hoge';
  7. }

アクションフォームのValidate()でエラーが無い場合、次に処理されるのはhogehogeのActionClassだと思ってたら、
hogehogeのViewClassなのね。
飛び先のActionClassから処理をさせる場合の処理を考えてあげないといけないかも知れない。

Leave a Reply

XHTML: You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>