/*
* 注册第一步,处理注册信息
*/
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的
}
求指点~谢谢咯
最佳答案