Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter / MVC best practices
#2

[eluser]xwero[/eluser]
If the same data isn't requested elsewhere i put the formating in the query but this means i loose the flexibility to go to another database as the functions are mostly database specific.

I don't see the use of formating the data in the controller to loop it again in the view. if data needs formating use functions in the view. if the formating requires multiple functions or parameters that can be set globally wrap them to keep the php code as short as possible.


Messages In This Thread
CodeIgniter / MVC best practices - by El Forum - 03-03-2009, 05:14 AM
CodeIgniter / MVC best practices - by El Forum - 03-03-2009, 06:13 AM
CodeIgniter / MVC best practices - by El Forum - 03-03-2009, 06:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB