problem rendering templates
I created a module that stores templates until it is later used by the code to send email to user, using the templating engine, I passed a variable from the textarea to the database e.g {$fullname}.
The problem here is when i wanna use up the template in my code, i get undefined variable error. this is what am using $CI->parser->parse_string($template, TRUE);. the $template is a raw html containing the templating tage loaded from the database.
What am I missing here, Your help will be much appreciated.
Thanks in anticipation
Comments
Dear, {$fullname}
Your new password is: {$password}
You can change your password at any time by logging into your account.
How do i go about it.
$data = array('fullname' => $name, 'password' => $password); $str = $this->fuel->parser->parse_string('my_template', );