Codeigniter + Dwoo

Posted by RedTruck on Stack Overflow See other posts from Stack Overflow or by RedTruck
Published on 2010-12-24T09:06:19Z Indexed on 2010/12/25 10:54 UTC
Read the original article Hit count: 350

Filed under:
|
|

I got problem when implementing my CMS using Codeigniter 1.7.2 and Dwoo. I use Phil Sturgeon Dwoo library. My problem is I want user create template from the admin panel, it means all template will be stored into database including all Dwoo variable and functions.My questions:

  1. Is it possible to load dwoo template from database?
  2. How to parse dwoo variable or function from database? I tried to load content from database which is include dwoo var and function inside it, and i have tried to do evaluation using dwoo eval() function and phil sturgeon string_parse() but still have no luck.

for example:

my controller

$data['header'] = "<h1>{$header}</h1>"; --> this could be loaded from database

$this->parser->parse('header',$data);

my view

{$header}

Thank you,

© Stack Overflow or respective owner

Related posts about templates

Related posts about codeigniter