Dynamic content in the template file |
[eluser]Kamy[/eluser]
test Controller: Code: public function index() test_view.php: Code: <?php echo $sidemenu;?> If I browse to http://localhost/index.php/test it works ! But when I try to implement within the template file: Code: <?php $this->load->view('test_view'); ?> I get the error
[eluser]Kamy[/eluser]
template Code: <html>
[eluser]InsiteFX[/eluser]
$i is not being incremented so it will always contain the same value of $nav_item! Code: <?php foreach($nav_list as $i => $nav_item): ?> InsiteFX
[eluser]Kamy[/eluser]
Dude, that has nothing to do with my problem ! $i does not need to get incremented in that case....... |
Welcome Guest, Not a member yet? Register Sign In |