[eluser]Unknown[/eluser]
Hello happy helpers,
I have Phil Sturgeon's templating extension working - I've tested it. And independently I have the Dwoo parser working, which was recommended in Phil Sturgeon's documentation. But I am not sure how to make the two work together. The following works for me:
Code:
$this->template->title('Page Title', 'Page Title 2');
$this->template->set('foo', 'bar');
$this->template->build('welcome_message');
Code:
<p><?php echo $foo;?></p>
<p><?php echo $template['title'];?></p>
And this works:
Code:
$this->parser->parse('welcome_message');
But if I leave my view full of
{$foo} and don't call
$this->parser but just use
$this->template->build then it doesn't parse the braces, it just echoes it as a string.
It is as if the parser isn't being called by the templating class - but the following
$config['parser_enabled'] = TRUE; is set in the config.
Where am I going wrong? Why isn't the parser being called by the template class? Thank you in advance.