validation error |
Code: I am having an error "Call to a member function setRules() on null" Code: SYSTEMPATH/BaseModel.php at line 1421 Code: return $this->validation->setRules($rules, $this->validationMessages)->run($data, null, $this->DBGroup);
The main Model already has $this->db but your redefining it in you BaseModel __construct.
PHP Code: $this->db = db_connect(); // REMOVE THIS What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
change your constructor to this
PHP Code: public function __construct() |
Welcome Guest, Not a member yet? Register Sign In |