yii中Controller中的Action直接跳到另一个action的方法(yii学习)

来源:互联网 发布:淘宝易趣网 编辑:程序博客网 时间:2024/05/23 14:10
在同一个Controller中从一个action直接跳到另外一个action 使用redirect,在一个action中,例如有.actionIndex() 和actionLogin(); 要从Index跳到Login,可以在Index方法中写上$this->redirect (array("login"));即可!~
原创粉丝点击