在同一个Controller中从一个action直接跳到另外一个action 使用redirect,在一个action中,例如有.actionIndex() 和actionLogin(); 要从Index跳到Login,可以在Index方法中写上$this->redirect (array("login"));即可!~
yii中Controller中的Action直接跳到另一个action的方法(yii学习)
最新推荐文章于 2021-03-12 03:32:04 发布