Welcome Guest, Not a member yet? Register   Sign In
How to write models
#1

[eluser]papagno[/eluser]
Hi, I'm a new CodeIgniter user and this is my first post to this forum.

I'm having some problems understanding how to structure model classes. With Rails we use class methods for tasks like find or create records in the database, and we use instance methods to access properties of each object. How can I implement this logic with CodeIgniter? When I do
Code:
$this->load->model('example');
I get an instance of the model class.

Thank you,
Francesco


Messages In This Thread
How to write models - by El Forum - 02-11-2011, 10:08 AM
How to write models - by El Forum - 02-11-2011, 10:20 AM
How to write models - by El Forum - 02-11-2011, 10:22 AM
How to write models - by El Forum - 02-11-2011, 10:23 AM
How to write models - by El Forum - 02-11-2011, 10:44 AM
How to write models - by El Forum - 02-11-2011, 10:50 AM
How to write models - by El Forum - 02-11-2011, 11:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB