When using $this->load->library('table'), shouldn't it be in views??? |
[eluser]123wesweat[/eluser]
Hi all, I am following: http://www.ibm.com/developerworks/openso...1&S_CMP=HP and i was wondering if the use of Code: $this->load->library('table') should be in a view file instead of in a controller file??
[eluser]rogierb[/eluser]
Nah, it should be in the controller. That's the place for logic. I guess you are confused because it is the 'table' class. But is is just another class, just like the form_validation for instance. The only thing you want in your view is whatever you want to output.
[eluser]123wesweat[/eluser]
Quote:I guess you are confused because it is the ‘table’ class. yep, i was thinking: "he that's html (generates html) so it needs to be in the view folder" still need to get a more MVC mindset. |
Welcome Guest, Not a member yet? Register Sign In |