Jump to content

ps v1.4 "Compile cache if templates are updated"


Recommended Posts

If you creating a module that changes a .tpl file you can use this code:

 

   public function install(){
       if (!parent::install())
           return false;        
     ......
       }        
       $this->clearTplCache();
       return true;
   }

public function clearTplCache()
{
 global $smarty;
 $smarty->clearCompiledTemplate('TheTplName.tpl');
}

Link to comment
Share on other sites

×
×
  • Create New...