• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Display content in table

#2
[eluser]TWP Marketing[/eluser]
Do your formatting in a model, or in the controller and only send the formatted data to the view.
However, sometimes you must put php processing in a view, for instance a foreach() loop to write a list or html table. The code police will not be overly upset with this, because they do it themselves, sometimes...


Messages In This Thread
Display content in table - by El Forum - 09-05-2012, 12:56 PM
Display content in table - by El Forum - 09-05-2012, 01:03 PM
Display content in table - by El Forum - 09-05-2012, 01:10 PM
Display content in table - by El Forum - 09-05-2012, 01:19 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.