请问如何判断当前的方法是哪个url跳转过来的

浏览:2995 发布日期:2013/06/10 分类:求助交流
如:
/*
* 注册第一步,处理注册信息
*/
public function step1() {
//判断是否为非法跳转
if (!IS_POST) {
halt("非法跳转!");
}
//获取页面参数,并自动添加到表中
$user = D('User');
if (!$user->create()) {
$this->error($user->getError());
} else {
$user->add();
$this->display('step2');
}
}

/*
* 注册第二步,邮箱验证
*/

public function step2() {
//这里怎么判断请求是来自step1的
}


求指点~谢谢咯
最佳答案
评论() 相关
后面还有条评论,点击查看>>