|
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: Admin_model
Filename: admin/login.php
Line Number: 36
Fatal error: Cannot access empty property in D:\phpnow1.5\htdocs\ci_ks\application\controllers\admin\login.php on line 36
代码:
if ($this->validation->run() == FALSE)
{
$this->load->view('admin/login_v');
}
else
{
$user_name = trim($this->input->post('user_name'));
$user_pwd = trim($this->input->post('user_pwd'));
$this->load->model('admin/Admin_model');
$a=$this->$Admin_model->admin_login($user_name, $user_pwd);
if ($a)
{
$this->load->view('admin/admin_frame');
}
else
{
$this->load->view('admin/login_v');
}
} |
|