Welcome Guest, Not a member yet? Register   Sign In
Loading views in templates
#1

[eluser]Daniel_E9[/eluser]
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


Messages In This Thread
Loading views in templates - by El Forum - 01-09-2010, 10:09 AM
Loading views in templates - by El Forum - 01-09-2010, 10:18 AM
Loading views in templates - by El Forum - 01-09-2010, 10:26 AM
Loading views in templates - by El Forum - 01-09-2010, 10:34 AM
Loading views in templates - by El Forum - 01-09-2010, 10:44 AM
Loading views in templates - by El Forum - 01-09-2010, 11:14 AM
Loading views in templates - by El Forum - 01-09-2010, 11:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB