Wednesday, July 28, 2010

调用controller里不存在的Action的处理方法

调用controller里不存在的Action的处理方法

加上__call方法,会使不存在的action或者错误的action(例如 action names格式不对:只写name, 而不是nameAction )自动转到 index action里, 当然可以修改 $this->_forward('index'); 改变其目标action。

0 评论:

Post a Comment