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

[eluser]alexwenzel[/eluser]
Hi guys,

I wrote a new model override for codeigniter. I know there are plenty of them outside, but i started to write this model mostly for my own.
But now i decided to make it popular, because its so much fun to work with.

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::by_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 use
- easy to install
- short syntax
- method chaining
- form-validation with one call
- all based on CodeIgniters own active record class !!!



Project-Site:

https://bitbucket.org/alexwenzel/my_model



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



ISSUES:

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

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

... or contact me!


Messages In This Thread
Yet another MY_Model - by El Forum - 08-16-2012, 05:48 AM
Yet another MY_Model - by El Forum - 08-16-2012, 06:22 AM
Yet another MY_Model - by El Forum - 08-16-2012, 07:59 AM
Yet another MY_Model - by El Forum - 08-16-2012, 02:15 PM
Yet another MY_Model - by El Forum - 08-17-2012, 04:36 AM
Yet another MY_Model - by El Forum - 08-17-2012, 04:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB