Welcome Guest, Not a member yet? Register   Sign In
Need Help with Views
#4

[eluser]robnecciai[/eluser]
Thanks guys. Your responses were very helpful. I knew that leaving such logic in the views was probably a bad idea. So, after a little redesigning, I came up with a solution that basically utilizes a single "default" view. Now, all of the logic resides inside the controller(s) and the "default" view simply acts as a template.

The critical piece that I was missing before was the ability to return the view as a string (via $this->load->view('myview', $data, TRUE). After using that, everything started to fall into place. But, like anything else, it will be refined over time.

Thanks again for your help.


Messages In This Thread
Need Help with Views - by El Forum - 10-11-2010, 07:56 AM
Need Help with Views - by El Forum - 10-11-2010, 11:13 AM
Need Help with Views - by El Forum - 10-11-2010, 02:06 PM
Need Help with Views - by El Forum - 10-11-2010, 08:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB