How to create and use objects on CodeIgniter 2?

Should I create it on models or create a folder called ‘classes’ and put them there?
Could you give me a simple example of how to create an object and how to get and set it properties on CodeIgniter 2?

Would that be the right usage?

$myModel = new $this->MyModel();
$myModel->mymethod();
// or to get a property
$myModel->my_property;


Download how.to.create.and.use.objects.on.codeigniter.2.zip
Direct Link


Download


Download how.to.create.and.use.objects.on.codeigniter.2.zip
Mediafire


Download


Download how.to.create.and.use.objects.on.codeigniter.2.zip
Droplr


Download

Both comments and pings are currently closed.

Comments are closed.