EllisLab text mark
Advanced Search
     
CI-Enhanced: Model Library
Posted: 09 March 2012 03:53 PM   [ Ignore ]
Joined: 2011-03-14
36 posts

I’ve recently been working on converting a few of my existing libraries within CodeIgniter and decided I may as well publish them on GitHub and make them available to all.  I’m really looking forward to feedback on these libraries so I can make improvements.  As a side affect, it’d be great if someone else found it useful too.

Currently I only have my model library available.  But the idea behind it is that you can do things like this to update a user… leave off $userId to create a new user

modelFactory('user'$userId)
      ->
setName('Alex')
      ->
setAge(22)
      ->
save(); 

If you like what you see I’d encourage you to check it out, browse the source code, and look at the examples and documentation.  I still have more work to do on the wiki I hope to complete over the next week.

CodeIgniter-Enhanced on GitHub