RegsDev Posted September 15, 2016 Share Posted September 15, 2016 Hi, When i add code html, example : $smarty->assign(array('href' =>'<a href="">test</a>')); When i read the page, no html but write the code; how can i insert html and read the code html? Thanks Link to comment Share on other sites More sharing options...
Traumflug Posted September 15, 2016 Share Posted September 15, 2016 Results depend on where you add this line of code. .tpl file? .php file? .scss file? .js file? Link to comment Share on other sites More sharing options...
RegsDev Posted September 15, 2016 Author Share Posted September 15, 2016 The code php calls the Hook public function hookDisplayOrderDetail($params) { $smarty = Context::getContext()->smarty; $smarty->assign(array("chaine" =>'<a href="">test<a/>')); } Link to comment Share on other sites More sharing options...
tilito Posted June 11, 2018 Share Posted June 11, 2018 I hope you found a way to solve your problem. If someone is facing this isssue, try this : In hook : public function hookDisplayOrderDetail($params){ $smarty = Context::getContext()->smarty; $smarty->assign(array("html" =>'<a href="">test<a/>')); } In tpl file : {$html nofilter} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now