Jump to content

Adding New Varibale To Header.tpl


Recommended Posts

Hi everybody;

 

I want to assign new varibale to header.tpl in vs 1.5.3.1 and I think I follow the right way but I couldn't.

 

I override the override/classes/controller/frontcontroller.php and it's last view shown in below

 

class FrontController extends FrontControllerCore
{
function displayHeader()
{
$today = date("F j, Y, g:i a");
self::$smarty->assign( 'date_time', $today );
}

}

 

After that when I debug my page I can not see $date_time variable. Also when I put {$date_time} to header.tpl there is no change.

 

Force compile is active and cache is close.

 

I work on localhost and on a new prestahop.

 

What is wrong here?

 

I spend lots of hours and I will be crazy. Please help me

Edited by tebdilikiyafet (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...