Welcome Guest, Not a member yet? Register   Sign In
What do you do When Multiple Controllers are Needed?
#1

[eluser]Nalorin[/eluser]
I'm working on a site that will have multiple parts of the page be dependent upon database content. One section will be list of categorical filters. Another will be a list of other filters (for example: price, condition, etc), and the main area will be search results after the filters have been applied.

I'm not quite sure how I would accomplish this. I tried something similar to this:
Code:
<html>
<body>
  <div id='categories'> &lt;?php $this->load->controller('categories'); ?&gt; </div>
  <div id='filters'> &lt;?php $this->load->controller('filters'); ?&gt; </div>
  <div id='main_content'> &lt;?php $this->load->controller('main'); ?&gt; </div>
&lt;/body&gt;
&lt;/html&gt;
only to learn (as I expected) that controllers cannot be loaded from views.

Does anyone have any suggestions on how I may accomplish this?

Any help would be greatly appreciated! Thanks in advance!


Messages In This Thread
What do you do When Multiple Controllers are Needed? - by El Forum - 08-10-2010, 10:51 PM
What do you do When Multiple Controllers are Needed? - by El Forum - 08-11-2010, 12:02 AM
What do you do When Multiple Controllers are Needed? - by El Forum - 08-11-2010, 12:26 AM
What do you do When Multiple Controllers are Needed? - by El Forum - 08-11-2010, 12:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB