tebdilikiyafet Posted February 27, 2013 Share Posted February 27, 2013 (edited) 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 February 27, 2013 by tebdilikiyafet (see edit history) Link to comment Share on other sites More sharing options...
tebdilikiyafet Posted February 27, 2013 Author Share Posted February 27, 2013 (edited) When I override initHeader() or initFooter() function it works but displayHeader, displayTop and displayFooter don't work. What is the trick here? What am I doing wrong? Edited February 27, 2013 by tebdilikiyafet (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts