Welcome Guest, Not a member yet? Register   Sign In
moduler page how in CI?
#1

[eluser]umefarooq[/eluser]
Hi
i want to know that how we can have different modules on one page using in controller and view like joomla we can have we can have left, right or top modules and have different code and query can we some thing like this in CI different files having their own queries.
#2

[eluser]bigtimslim[/eluser]
Were you drunk when you wrote this? It's ok with me if you were because I am as I'm responding haha.

I'm sure what you are wanting can be accomplished, but whether its feasible for your situation I don't know. Try going through all of the documentation.
#3

[eluser]wr5aw[/eluser]
Send your module view outputs to an array. Then echo each variable from the array in a main template:

Controller:
Code:
$data['module1'] = $this->load->view("module1", $array1, TRUE);
$data['module2'] = $this->load->view("module2", $array2, TRUE);
$data['module3'] = $this->load->view("module3", $array3, TRUE);
$this->load->view('maintemplate', $data);

View:
Code:
<div id='module1'>&lt;?php echo $module1; ?&gt;</div>
<div id='module2'>&lt;?php echo $module2; ?&gt;</div>
<div id='module3'>&lt;?php echo $module3; ?&gt;</div>




Theme © iAndrew 2016 - Forum software by © MyBB