/**
  * Initialize the tplEngine with the right parameters.
  */
 function ProjectSmartyTpl()
 {
     CopixSmartyTpl::CopixSmartyTpl();
     // Add here pathes to other Smarty plugin directories:
     // $this->plugins_dir[] =  COPIX_PROJECT_PATH.'smarty_plugins/';
     $this->plugins_dir[] = PROJECT_SMARTY_PLUGIN_PATH;
 }
 /**
  * passage du traitement à smarty.... (après inclusion si nécessaire.)
  * @param string  $tplName    nom du fichier template
  * @param string  $funcName   nom de la fonction
  */
 function smartyPass($tplName, $funcName)
 {
     //inclusion de l'objet Smarty Aston.
     include_once COPIX_CORE_PATH . 'CopixSmartyTpl.class.php';
     //inclusion d'un smarty
     //paramétré pour Copix.
     $tpl = new CopixSmartyTpl();
     $tpl->assign($this->_vars);
     if ($funcName == 'fetch') {
         return $tpl->fetch('file:' . $this->templateFile);
     } else {
         $tpl->display('file:' . $this->templateFile);
     }
 }