我有一个简单的登录表单并对其进行验证
localhot / edf / auth / user
如果验证===再次错误地加载错误的登录页面并租用 正确的数据并重新提交表单,但控制器名称显示为double.like
localhost / edf / auth / auth / user
得到404错误。
public function index()
{
$Data['banks'] = $this->AuthModel->Banks()->result();
$Data['view'] = "Auth";
$this->load->view('dashboard',$Data);
}
public function User(){
$this->form_validation->set_rules('bank', 'Bank', 'required|numeric',);
$this->form_validation->set_rules('branchcode', 'Branch Code', 'required|numeric');
$this->form_validation->set_rules('User', 'Email', 'required');
$this->form_validation->set_rules('auth', 'Password', 'required');
if ($this->form_validation->run() == FALSE)
{
$Data['banks'] = $this->AuthModel->Banks()->result();
$Data['view'] = "Auth";
$this->load->view('dashboard',$Data);
}
else
{
$Data['view'] = "";
$this->load->view('dashboard',$Data);
}
}