Welcome Guest, Not a member yet? Register   Sign In
Where to create table data?
#1

[eluser]davlyn[/eluser]

I have started using table lib, and most of the time I will put the code for filling out the tables (such as set_heading,add_row(), generate() etc) in the view part of the project.

So I have been thinking. Isn't it maybe a better idea do any sort of data handling (such as filling up the tables from the arrays that I got by puling it out of the database via model methods calls in controller, and with it any logical checks) in controller rather than the view and just let view take care of displaying information?

Or should I leave any html building and data handling out of the controller and just have controller pass on information from model method calls?

I mean what is the better practice, or if this does affect anything at all?
#2

[eluser]InsiteFX[/eluser]
Create a library for it.




Theme © iAndrew 2016 - Forum software by © MyBB