当前位置:Gxlcms > PHP教程 > thinkPHP控制器跳转解决方法

thinkPHP控制器跳转解决方法

时间:2021-07-01 10:21:17 帮助过:11人阅读

thinkPHP 控制器跳转
在thinkphp中怎么从indexAction.calss.php中的index 方法中条到homeAction.class.php中的del方法中, thinkphp 跳转

分享到:


------解决方案--------------------
可以用redirect跳转。
------解决方案--------------------
返回值= R('跳转的控制器/方法', 参数 );
------解决方案--------------------
引用:
返回值= R('跳转的控制器/方法', 参数 );

调上home下del函数的话可以用2楼这种
如果只是跳转的话可以

$this->redirect("home/del",array());

人气教程排行