[eluser]richzilla[/eluser]
Im assuming you want to affect the value of two different divs in the same view with two separate functions. yes. Send the HTML you wish to display as a string in your controller, with each function sending each string of html:
Code:
function one()
{
$data['my_html_1'] = $my_html_1;
$this->load->view('my_view',$data);
}
function two()
{
$data['my_html_2'] = $my_html_2;
$this->load->view('my_view',$data);
}
then in your view:
Code:
<?php if($my_html_1) : ?>
<div id="one">
<?php echo $my_html_1; ?>
</div>
<?php endif; ?>
<?php if($my_html_2) : ?>
<div id="two">
<?php echo $my_html_2; ?>
</div>
<?php endif; ?>
but i have to ask, why not just use two different views?