CodeIgniter Forums
CI-Enhanced: Model Library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: CI-Enhanced: Model Library (/showthread.php?tid=49980)



CI-Enhanced: Model Library - El Forum - 03-09-2012

[eluser]Webnet[/eluser]
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

Code:
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