smarty template engine
Friday, August 08, 2008  
download | documentation | faq | forum | mailing lists | changelog | contribs 


search for in the  


$php_handling

Este informa al Smarty como manipular códigos PHP contenidos en los templates. Hay cuatro posibles configuraciones, siendo el default SMARTY_PHP_PASSTHRU. Observe que esto NO afectara los códigos php dentro de las etiquetas {php}{/php} en el template.

  • SMARTY_PHP_PASSTHRU - Smarty echos tags as-is.

  • SMARTY_PHP_QUOTE - Smarty abre comillas a las etiquetas de entidades html.

  • SMARTY_PHP_REMOVE - Smarty borra las etiquetas del template.

  • SMARTY_PHP_ALLOW - Smarty ejecuta las etiquetas como código PHP.

Nota: Incrustar codigo PHP dentro del template es sumamente desalentador. Use custom functions o modifiers en vez de eso.




 

credits 

Smarty Copyright © 2002-2008
New Digital Group, Inc.

All rights reserved.