Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End PHP Smarty Template System

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #149295

    I would like to know just found nice easy to use php template system called smarty what people think about it. so far letting me do things I am after.

    In my template dir would like it to pick up the direc what ever the header tpl is in so don have to edit all that all the time?

    require_once('system/libs/Smarty.class.php');
    
    $smarty = new Smarty();
    
    $smarty->template_dir = 'catalog/view/theme/website/template/common';
    
    $smarty->compile_dir = "system/cache";
    
    $smarty->display('header.tpl');
    
Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.