
Updated calls to current Smarty API (register_function()/register_modifier()/register_block() -> registerPlugin(); assign_by_ref() -> assignByRef()). Fixed file includes in templates with quotes. Removed SmartyValidate.class.php includes. Still work in progress as some errors still appear!
34 lines
556 B
Markdown
34 lines
556 B
Markdown
lower {#language.modifier.lower}
|
|
=====
|
|
|
|
This is used to lowercase a variable. This is equivalent to the PHP
|
|
[`strtolower()`](&url.php-manual;strtolower) function.
|
|
|
|
|
|
<?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`](#language.modifier.upper) and
|
|
[`capitalize`](#language.modifier.capitalize).
|