Set Rules in model. |
Something I've been playing with recently is schema exploring, I've only spent about an hour on this but this is what I have so far: https://github.com/monsterlane/codeignit..._Model.php
You can detect type/non-null and provide defaults or validation using those or comments. All you have to define is the table name in your model and provide hints in your schema for the rest. |
Messages In This Thread |
Set Rules in model. - by miiikkeyyyy - 03-03-2015, 09:17 AM
RE: Set Rules in model. - by mwhitney - 03-03-2015, 01:48 PM
RE: Set Rules in model. - by spjonez - 03-03-2015, 05:06 PM
RE: Set Rules in model. - by tapan.thapa - 03-03-2015, 09:18 PM
RE: Set Rules in model. - by spjonez - 03-04-2015, 06:45 AM
RE: Set Rules in model. - by mwhitney - 03-04-2015, 01:16 PM
RE: Set Rules in model. - by cartalot - 03-06-2015, 05:05 PM
|