Bluedge Posted July 7, 2016 Share Posted July 7, 2016 (edited) Hello, I have a custom made module working fine since a year, I wanted to had a simple hook. The hook is well registered and active but the smarty variables are not assigned anymore. As test : I have tried to add a smarty variables to other module and it never gets output. Removing an existing smarty variable works (it becomes missing in the template) What ever I do the smarty variables don't get assigned anymore. HELP PLEASE !!! Note : I have clear the cache Here is the very simple test code: public function hookDisplayMyTest($params) { $this->smarty->assign('hello', 'world'); return $this->display(__FILE__, 'destinationsbottom.tpl'); } Edited July 7, 2016 by Bluedge (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted July 8, 2016 Share Posted July 8, 2016 It's $this->context->smarty->assign Link to comment Share on other sites More sharing options...
Bluedge Posted July 8, 2016 Author Share Posted July 8, 2016 I have done that, thanks. Weirdly enough I had to kill apache and restart to see any effect. 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