Set Rules in model. |
This is the code I have made so far.
It works but the whole if/check slug thing is ugly and I don't think it meets decent coding practices. I don't want any check functions inside the controller. I want all check functions inside my model. Is this the only way to make it possible? As I've wrote this I've thought about adding a function called "function check slug()" and then call it as $this->pages_model->check_slug(); Anyways, I'd appreciate your feedback nether the less. PHP Code: <?php |
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
|