• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Phil Sturgeon templating library and Dwoo parser both working, but not together

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:

$this->template->title('Page Title', 'Page Title 2');
$this->template->set('foo', 'bar');
<p>&lt;?php echo $foo;?&gt;</p>
<p>&lt;?php echo $template['title'];?&gt;</p>

And this works:

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.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.