01-09-2010, 10:09 AM
[eluser]Daniel_E9[/eluser]
I have a php view called 'blog' which has header, footer sections. I am currently loading these in like this:
I am currently parsing in my blog articles like this in the controller:
I can't seem to figure out how to load these components/html into their respective {header} / {footer} areas in the view.
Any ideas? Thanks
I have a php view called 'blog' which has header, footer sections. I am currently loading these in like this:
Code:
<?php $this->load->view('header'); ?>
I am currently parsing in my blog articles like this in the controller:
Code:
$this->parser->parse('blog', array('articles' => $articles));
I can't seem to figure out how to load these components/html into their respective {header} / {footer} areas in the view.
Code:
{header}
{articles}
<h2>{heading}</h2>
{body}
{/articles}
{footer}
Any ideas? Thanks