hi ,
i have some trouble in view.
i save html data in database, then i get that data. i want echo that data as view. in other side in my data there is volt syntax (ex. {{name}}). i want this name will echo real value not {{name}}. ex. name is mario, so {{name}} will be mario.
i have made script like this, but it doesnt work, i need somebody help me.
$view->start(); $view->setVar('name', 'mario valentino'); $view->setContent($data['content']); $view->finish(); echo $view->getContent();
note : $data['content'] include volt syntax, i want all volt syntax do what it should do like echo variable.
hope i get the answer.
thanks
mario valentino