Welcome Guest, Not a member yet? Register   Sign In
Using a helper function in the View file
#6

[eluser]vrencianz[/eluser]
It is not a lie Smile.
The view must be kept as clean as possible because as intended designers will work on it. They don't know codeigniter or advanced php features at all.

When html tables are displayed, and for the 'html table class' case, is better to have the php code on the controller side. Adding/removing columns to/from the table is much more easier and flexible.

If you are the only one developer of that site (almost all of we are Smile) then it does not matter, all the code can be moved to the controller (even models) side. I am joking, of course.


Messages In This Thread
Using a helper function in the View file - by El Forum - 04-26-2012, 08:01 AM
Using a helper function in the View file - by El Forum - 04-26-2012, 09:44 AM
Using a helper function in the View file - by El Forum - 04-26-2012, 09:54 AM
Using a helper function in the View file - by El Forum - 04-26-2012, 09:56 AM
Using a helper function in the View file - by El Forum - 04-26-2012, 10:14 AM
Using a helper function in the View file - by El Forum - 04-26-2012, 10:18 AM
Using a helper function in the View file - by El Forum - 04-26-2012, 10:27 AM
Using a helper function in the View file - by El Forum - 04-26-2012, 10:49 AM
Using a helper function in the View file - by El Forum - 04-26-2012, 11:15 AM
Using a helper function in the View file - by El Forum - 04-26-2012, 12:18 PM
Using a helper function in the View file - by El Forum - 04-26-2012, 12:29 PM
Using a helper function in the View file - by El Forum - 04-26-2012, 02:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB