Welcome Guest, Not a member yet? Register   Sign In
What do you do with your config arrays?
#5

[eluser]xwero[/eluser]
Validation should be in a different file, then the code in the controller almost reduces to the minimum. But for that to happen you need to customize the CodeIgniter.php file. The same thing is possible if you want to keep the display manipulations of the data out of the models.

Basically it is creating intercepting layers. The validation is called before the controller loads and the viewdata layer is called between the controller and view.


Messages In This Thread
What do you do with your config arrays? - by El Forum - 07-16-2008, 09:53 AM
What do you do with your config arrays? - by El Forum - 07-17-2008, 05:37 AM
What do you do with your config arrays? - by El Forum - 07-17-2008, 05:41 AM
What do you do with your config arrays? - by El Forum - 07-17-2008, 05:50 AM
What do you do with your config arrays? - by El Forum - 07-17-2008, 06:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB