-
language.modifiers
...lls: First - sometimes the order of the function-parameters is not the desirable...
... apply a modifier, specify the value followed by a | (pipe) and the modifier nam...
... a : (colon). Also, all php-functions can be used as modifiers implicitly (more ...
-
language.modifier.truncate
...ble to a character length, the default is 80. As an optional second parameter, y...
...Eighteen Years at Checkout Counter.'); ? where template is: {$articleTitle} {$ar...
...1. truncate ?php $smarty- assign('articleTitle', 'Two Sisters Reunite after E...
-
smarty.for.designers
...te unescape upper wordwrap 6. Combining Modifiers 7. Built-in Functions {$var=.....
...hile} 8. Custom Functions {counter} {cycle} {eval} {fetch} {html_checkboxes} {ht...
...ombining Modifiers 7. Built-in Functions {$var=...} {append} {assign} {block} {c...
...te unescape upper wordwrap 6. Combining Modifiers 7. Built-in Functions {$var=.....
-
language.syntax.variables
...plate variables start with the $dollar sign. They can contain numbers, letters a...
...} // as array index {$foo={counter}+3} // tags within tags {$foo="this is messag...
...by index numerically or non-numerically. Also reference object properties and me...
-
language.function.html.select.date
...E Display years in reverse order field_array string No null If a name is given, ...
...a timestamp. Example 8.16. {html_select_date} Template code {html_select_d...
...parameters that are not in the list below are printed as name/value-pairs inside...
...w are printed as name/value-pairs inside the select tags of day, month and year....
...a timestamp. Example 8.16. {html_select_date} Template code {html_select_d...
-
variable.escape.html
...s are run in the following order: modifier, default_modifier, $escape_html, regi...
...URCE_CHAR_SET); , which is the same as {$variable|escape:"html"} . Template desi...
-
variable.plugins.dir
...ch plugin directory in the order they are given . Technical Note For best perfor...
... Next $plugins_dir This is the directory or directories where Smarty will look f...
-
language.syntax.quotes
...lock function Example 3.6. Examples {* will replace $tpl_name with value *...
..."double quotes" so long as the variable name contains only numbers, letters and ...
...on result {func var="test {counter} test"} // plugin result {func var="variable ...
...mple a period(.) or $object- reference , then the variable must be surrounded by...
...lock function Example 3.6. Examples {* will replace $tpl_name with value *...
-
language.custom.functions
...tput: 0 br / 2 br / 4 br / 6 br / Prev  Up  Next {while} Home  {c...
...ctions that you can use in the templates. {counter} {counter} is used to print o...
...nctions Table of Contents {counter} {cycle} {eval} {fetch} {html_checkboxes} {ht...
...tput: 0 br / 2 br / 4 br / 6 br / Prev  Up  Next {while} Home  {c...
-
language.syntax.attributes
... Next Attributes Most of the functions take attributes that specify or modify ...
...e"} {assign var=foo value={counter}} // plugin result {assign var=foo value=subs...
-
plugins
...template is processed. The order in which multiple filters of the same type are ...
...cripts will be loaded. Moreover, each plugin is loaded only once, even if you ha...
...rts Version 2.0 introduced the plugin architecture that is used for almost all t...
-
language.function.html.checkboxes
..., types from contact_types order by type'; $smarty- assign('contact_types',$db- ...
... input -tags. Example 8.6. {html_checkboxes} ?php $smarty- assign('cust_id...
...cted string/array No empty The selected checkbox element(s) options associative ...
... boolean No TRUE Add label -tags to the output label_ids boolean No FALSE Add id...
... input -tags. Example 8.6. {html_checkboxes} ?php $smarty- assign('cust_id...
-
language.combining.modifiers
...hey will be applied in the order they are combined, from left to right. They mus...
... Chapter 6. Combining Modifiers Chapter 6. Combining Modifiers chapt...
...f modifiers to a variable. They will be applied in the order they are combined, ...
...ning modifiers ?php $smarty- assign('articleTitle', 'Smokers are Productive, but...
... Chapter 6. Combining Modifiers Chapter 6. Combining Modifiers chapt...
-
language.function.setfilter
... They run in the following order: modifier, default_modifier, $escape_html, regi...
...ions  Next {setfilter} The {setfilter}...{/setfilter} block tag allows the d...
... Chapter 7. Built-in Functions  Next {setfilter} The {setfilter}.....
-
plugins.naming.conventions
...cific naming convention in order to be located by Smarty. plugin files must be n...
... .php Where type is one of these plugin types: function modifier block compiler ...
-
language.function.assign
... template variables during the execution of a template . Note Assignment of vari...
...include_php} , {insert} , {counter} , {cycle} , {eval} , {fetch} , {math} , {tex...
... Chapter 7. Built-in Functions  Next {assign} {assign} is used for...
-
language.function.html.radios
..., types from contact_types order by type'; $smarty- assign('contact_types',$db- ...
...s selected string No empty The selected radio element options associative array ...
... boolean No TRUE Add label -tags to the output label_ids boolean No FALSE Add id...
-
language.function.debug
...ed for the cached page. In order to see also the variables which have been local...
...Next {debug} {debug} dumps the debug console to the page. This works regardless ...
... Chapter 7. Built-in Functions  Next {debug} {debug} dumps the deb...
-
index
...te unescape upper wordwrap 6. Combining Modifiers 7. Built-in Functions {$var=.....
...eanize $config_dir $config_overwrite $config_read_hidden $debug_tpl $debugging $...
... Â Â Next Smarty - the compiling PHP template engine Monte Ohrt monte at...
...hile} 8. Custom Functions {counter} {cycle} {eval} {fetch} {html_checkboxes} {ht...
...   Next Smarty - the compiling PHP template engine Monte Ohrt monte ...
...te unescape upper wordwrap 6. Combining Modifiers 7. Built-in Functions {$var=.....
-
language.function.include.php
... url, name from navigation order by name'); $this- assign('navigation', $db- get...
...insulate presentation from the application code. As of Smarty 3.1 the {include_p...
... Chapter 7. Built-in Functions  Next {include_php} IMPORTANT NOTIC...
-
resources
...tories is traversed in the order they appear in the array. The first template fo...
... Chapter 16. Resources Chapter 16. Resources chapter, 16, resources ...
...f templates better control over which template to acces. The bracket-syntax can ...
... Custom Template Resources The templates may come from a variety of sources. Whe...
...s Smarty ships with a built-in template resource for the filesystem. The file: i...
... Chapter 16. Resources Chapter 16. Resources chapter, 16, resources ...
-
language.function.html.options
..., types from contact_types order by type'; $smarty- assign('contact_types',$db- ...
... assign('cust_ids', array(56,92,13)); $smarty- assign('cust_names', array( 'Joe ...
...stom function that creates the html select option group with the assigned data. ...
...e are printed as name/value-pairs inside the select tag. They are ignored if the...
... assign('cust_ids', array(56,92,13)); $smarty- assign('cust_names', array( 'Joe ...