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

Advertisement

cat

Posizione del Parametro Tipo Obbligatorio Default Descrizione
1 stringa No vuoto Valore che viene concatenato alla variabile.

Questo valore viene concatenato alla variabile data.

Example 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.