Get Smarty


Donate Bitcoin Bitcoin

Smarty Icon

You may use the Smarty logo according to the trademark notice.

Smarty Template Engine Smarty Template Engine

For sponsorship, advertising, news or other inquiries, contact us at:

Sites Using Smarty

Buy cheap glasses from and save up to 80%.

Where to buy dental loupes? is your best choice!

Where to buy discount wedding dresses and cheap smart dresses free shipping -

Find cheap Wedding Dresses from italy, by

Buy New Arrival Cheap Prom Dresses 2015 at JDBRIDAL Prom Dress Store

Find Wedding Dresses Online at Canada from

Cheap bridesmaid dresses - rush delivery only 10 days delivery to Australia at

Wholesale Camping Equipment from China at



Los postfilters de template son funciones de PHP con las cuales sus templates son corridos inmediatamente después de ser compilados. Los postfilters pueden ser registrado o cargados del directorio de plugins usando la función load_filter() o por la variable de configuración $autoload_filters. El Smarty pasara el código fuente del template compilado como el primer argumento, y espera que la función retorne el resultado del procesamiento.

Example 15.3. Usando un postfilter de template

// ponga esto en su aplicaci&oacute;n
function add_header_comment($tpl_source, &$smarty)
    return "<?php echo \"<!-- Created by Smarty! -->;\n\" ?>;\n".$tpl_source;

// registra el postfilter

Observe como hacer la compilacion para Smarty del template index.tpl:

     <!-- Created by Smarty! -->
     {* rest of template content... *}

No comments for this page.
Post a Comment
All comments are moderated. Support questions are ignored, use the forums instead.
Email: (not shown)
What is 10 plus 14? (Are you human?)