What is Smarty?
Why use it?
Use Cases and Work Flow
Syntax Comparison
Template Inheritance
Best Practices
Crash Course
You may use the Smarty logo according to the trademark notice.
For sponsorship, advertising, news or other inquiries, contact us at:
This is used to lowercase a variable. This is equivalent to the PHP
strtolower()
function.
Example 5.13. lower
<?php $smarty->assign('articleTitle', 'Two Convicts Evade Noose, Jury Hung.'); ?>
Where template is:
{$articleTitle} {$articleTitle|lower}
This will output:
Two Convicts Evade Noose, Jury Hung. two convicts evade noose, jury hung.
See also
upper
and
capitalize
.