用户
 找回密码
 入住 CI 中国社区
搜索
查看: 2602|回复: 2
收起左侧

[已解决] 表单处理问题,急

[复制链接]
发表于 2009-10-26 10:31:13 | 显示全部楼层 |阅读模式
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');
   
   }
  }
发表于 2009-10-26 10:47:20 | 显示全部楼层
$this->Admin_model
发表于 2009-10-26 13:28:15 | 显示全部楼层
ls正解

本版积分规则