Home > Backend Development > PHP Tutorial > thinkPHP 控制器跳转

thinkPHP 控制器跳转

WBOY
Release: 2016-06-23 14:18:12
Original
1188 people have browsed it

thinkphp 跳转

在thinkphp中怎么从indexAction.calss.php中的index 方法中条到homeAction.class.php中的del方法中,

回复讨论(解决方案)

可以用redirect跳转。

返回值= R('跳转的控制 器/方法', 参数 );

返回值= R('跳转的控制 器/方法', 参数 );
调上home下del函数的话可以用2楼这种
如果只是跳转的话可以

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

恩谢谢

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template