[eluser]CinoGenX[/eluser]
Hi @ All
Can someone clarify something simple for me please.
If im building my pages via a controller with something like:
$this->load->view("header")
$this->load->view("content",$data)
$this->load->view("footer")
etc...
If the view being loaded (content.php) is very complex, (like a website homepage where its made up of multiple sections which need info from the controller - like seperate database queries, forum post summaries, sliders etc)....should ALL that data be generated in one controller then loaded into $data array and passed to the content view?
Feels wrong doing so much in one controller and passing via one array to a single view.
(noob friendly replies please)
Many Thanks