[eluser]runrun[/eluser]
Hi,
I have a string similar this in controller:
Code:
'close time:' . mktime($rows['close_time']) . 'timeleft:' mktime($rows['close_time']-$rows['current_time'])
I want to use it in the view file, like this:
Code:
<?php foreach($query->result_array() as $rows): ?>
<div><?=formated_time($rows['close_time'], $rows['close_time'], $rows['current_time'])?></div>
<?php endforeach();?>
Is there any features in CI allow to do this ?