Welcome Guest, Not a member yet? Register   Sign In
Extending Model class
#2

[eluser]Glen Swinfield[/eluser]
You shouldn't have to do that.

Code:
class Mymodel extends Model
{
   // if you have a constructor make sure you call parent constructor
   function Mymodel(){
     parent::Model();
   }
}

// in controller

$this->load->model('Mymodel');

// Then use

$this->Mymodel->method();

Perhaps I have misunderstood the question?


Messages In This Thread
Extending Model class - by El Forum - 07-09-2007, 06:18 AM
Extending Model class - by El Forum - 07-09-2007, 06:49 AM
Extending Model class - by El Forum - 07-10-2007, 01:54 AM
Extending Model class - by El Forum - 07-10-2007, 02:17 AM
Extending Model class - by El Forum - 07-10-2007, 03:19 AM
Extending Model class - by El Forum - 07-10-2007, 11:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB