redirect in CAtion class!

See page 59 in the book, there are some code to explain using external actions

in the e.g.




if($post->delete()) {

     $this->redirect('post/index');

}



I try it, and always get 500 popup dialog by Firefox even the post has been deleted from DB. So maybe use




Yii::app()->request->redirect('post/index');



instead of it will be better?

Or?

Correct. This error is already at errata page http://yiicookbook.org/errata

Thanks for reporting.

thx, I will then first check there, then come here ask questions. :)