/** * Template renderer constructor * * Creates a smarty instance and sets a compile directory path (this is required * by smarty) */ public function __construct(Application $application) { $this->application = $application; $this->tpl = $this->getSmartyInstance(); $this->tpl->load_filter('pre', 'config'); $this->tpl->assign("BASE_URL", $this->application->getRouter()->getBaseUrl()); $this->registerHelperList(); }