Jump to content

Send $smarty in an override helper ?


Poppy381

Recommended Posts

Hi everybody. Is there a way to send some smarty variables to an override helper ?

 

 

 

public function test()

{
 
global $smarty;
$smarty->assign('color', array(stripslashes(Configuration::get('COLOR1')),stripslashes(Configuration::get('COLOR2')),stripslashes(Configuration::get('COLOR3'))));
   
  
  return $this->display(__FILE__, '/views/templates/admin/_configure/helpers/form/form.tpl');
 
}

 

 
In my override (form.tpl) the $smarty variable seems to not be accesible despite my code. Any idea ?
I don't know if it's possible to do that but we never know :).
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...