PHP Classes

If my project using smarty template ?

Recommend this page to a friend!

      PHP Minify HTML, CSS, JS  >  All threads  >  If my project using smarty template ?  >  (Un) Subscribe thread alerts  
Subject:If my project using smarty template ?
Summary:If my project using smarty template ?
Messages:3
Author:BratSadLove
Date:2019-06-22 16:53:10
 

  1. If my project using smarty template ?   Reply   Report abuse  
Picture of BratSadLove BratSadLove - 2019-06-22 16:53:10
Hi !

My project using smarty template then it's use ?

Thank's !

  2. Re: If my project using smarty template ?   Reply   Report abuse  
Picture of Marco Cesarato Marco Cesarato - 2019-06-22 21:17:38 - In reply to message 1 from BratSadLove
Hi,

I've read how filter the output on smarty and just use this:

function minify_html($tpl_output, Smarty_Internal_Template $template) {
$minifier = new Minifier();
$min_html = $minifier->minifyHTML($tpl_output);
return $min_html;
}

// register the outputfilter
$smarty->registerFilter("output", "minify_html");

$smarty->display($template);

  3. Re: If my project using smarty template ?   Reply   Report abuse  
Picture of BratSadLove BratSadLove - 2019-06-23 02:27:05 - In reply to message 2 from Marco Cesarato
Hi !

I will try it's,

Thanks for that

And can you add cache for this ?