Jump to content

Smarty variable visibility


Recommended Posts

I create a module with following code

function hookHeader($params)
{
 $setting = "test";
 $this->smarty->assign(
    'setting', $setting
 );
 return ($this->display(__FILE__, 'setting.tpl'));
}

I want to use $setting variable in header.tpl file, but it is undefined.

In the setting.tpl file I can use it without any problem.

How can I use this variable in the header.tpl file?

Thanks

Link to comment
Share on other sites

×
×
  • Create New...