Example 5-12. lower
<?php $smarty = new Smarty; $smarty->assign('articleTitle', 'Two Convicts Evade Noose, Jury Hung.'); $smarty->display('index.tpl'); ?>
|
Where index.tpl is:
{$articleTitle}
{$articleTitle|lower} |
This will output:
Two Convicts Evade Noose, Jury Hung.
two convicts evade noose, jury hung. |
|