smarty template engine
Sunday, September 07, 2008  
download | documentation | faq | forum | mailing lists | changelog | contribs 


search for in the  


cat

Posizione del ParametroTipoObbligatorioDefaultDescrizione
1stringaNovuotoValore che viene concatenato alla variabile.

Questo valore viene concatenato alla variabile data.

Esempio 5-4. cat

<?php    
$smarty 
= new Smarty;
$smarty->assign('articleTitle'"Psychics predict world didn't end");
$smarty->display('index.tpl');
?>

Dove index.tpl è:

{$articleTitle|cat:" yesterday."}

Questo stamperà:

Psychics predict world didn't end yesterday.



 

credits 

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

All rights reserved.