header("刷新:5; url='pagetoredirect.php'");
如果我们想在 5 秒内重定向我们的页面,我们可以使用它,
cakephp 有没有办法在 5 秒内重定向页面?
如果是,请告诉我
你可以尝试使用AppControllerheader()
method:
http://api.cakephp.org/class/app-controller#method-AppControllerheader http://api.cakephp.org/class/app-controller#method-AppControllerheader
在你的控制器中:
class CarController{
public function add(){
$this->header("") //Implemented on AppController::header
}
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)