Welcome Guest, Not a member yet? Register   Sign In
Just another MY_Model
#1

[eluser]alexwenzel[/eluser]
Hi guys,

I wrote a another model override for codeigniter.

I know there are plenty of them outside, but i started to write this model mostly for my own.

If you ever wanted to work with models like this ...

Code:
$newuser        = new User();
$newuser->name  = 'damn-its-nice';
$newuser->email = '[email protected]';
$newuser->save();

Code:
$user           = User::find('id', 2);
$user->name     = 'damn-its-nice-updated-by-id';
$user->email    = '[email protected]';
$user->save();

... my model is probably something for you.


Advantages:

- easy to install
- easy to use (not that complex like an ORM, but probably powerfull like one)
- short, readable syntax
- method chaining
- based on CodeIgniters active record class



Project-Site:

https://bitbucket.org/alexwenzel/my_model



ISSUES:

Please commit all issues directly to the issue tracker on bitbucket ...

https://bitbucket.org/alexwenzel/my_mode...tatus=open

... or contact me!



General informations:

I have implemented almost all methods from CodeIgniter for method chaining.
You can visit the CodeIgniter documentation for this under:

http://ellislab.com/codeigniter/user-gui...ecord.html


Messages In This Thread
Just another MY_Model - by El Forum - 08-16-2012, 08:14 AM
Just another MY_Model - by El Forum - 08-30-2012, 11:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB