-
language.modifiers
... Note The default behavior was changed with Smarty 3. In Smarty 2.x, you had to ...
...lls: First - sometimes the order of the function-parameters is not the desirable...
-
plugins.outputfilters
...il addresses to %40 as * a simple protection against spambots * ----------------...
-
language.syntax.variables
...ith presentation to PHP by way of plugins or modifiers. Request variables such a...
...les {$foo} -- displaying a simple variable (non array/object) {$foo[4]} -- displ...
-
language.function.html.select.date
...E Display years in reverse order field_array string No null If a name is given, ...
-
variable.escape.html
...s are run in the following order: modifier, default_modifier, $escape_html, regi...
-
variable.plugins.dir
...ch plugin directory in the order they are given . Technical Note For best perfor...
-
language.modifier.replace
...ifiers  Next replace A simple search and replace on a variable. This is equi...
-
language.function.for
...lse} tag is used to create simple loops. The following different formarts are su...
-
language.builtin.functions
...tribute Example 7.1. Simple assignment {$name='Bob'} The value of $name is...
-
plugins
...xception of resources, backwards compatibility with the old way of registering h...
...template is processed. The order in which multiple filters of the same type are ...
-
language.function.foreach
...= $myValue} , the key is always available as $myValue@key within the foreach loo...
... output $myColors in an un-ordered list ul {foreach $myColors as $color} li {$co...
...s of data. {foreach} has a simpler and cleaner syntax than the {section} loop, a...
-
caching.custom
...s being handled for you in way that allows clearing the cache-group "a" and all ...
..._CacheResource_Custom is a simple API directing all read, write, clear calls to ...
-
language.function.html.checkboxes
...ut / content (values are always escaped) Required attributes are values and outp...
..., types from contact_types order by type'; $smarty- assign('contact_types',$db- ...
-
language.function.extends
...tended Example 7.26. Simple {extends} example {extends file='parent.tpl'} ...
-
language.combining.modifiers
...hey will be applied in the order they are combined, from left to right. They mus...
-
preface
...ilosophy The Smarty design was largely driven by these goals: clean separation o...
...ming code, and instead use simple tags to indicate where application content is ...
-
advanced.features.outputfilters
...late output will have // a simple protection against spambots ? See also registe...
-
language.function.block
...}The {$smarty.block.child} was inserted here{/block} /title /head /html child.tp...
...ontent Example 7.15. Simple {block} example parent.tpl html head title {bl...
-
what.is.smarty
...t facilitates a manageable way to separate application logic and content from it...
...xpression syntax can be as simple or as complex an evaluation as you like. Allow...
-
language.function.setfilter
... They run in the following order: modifier, default_modifier, $escape_html, regi...
-
plugins.naming.conventions
...cific naming convention in order to be located by Smarty. plugin files must be n...
-
language.function.html.radios
...ut / content (values are always escaped) Required attributes are values and outp...
..., types from contact_types order by type'; $smarty- assign('contact_types',$db- ...
-
plugins.compiler.functions
...ile name and * the time it was compiled. * -------------------------------------...
...ags. Example 18.6. A simple compiler function ?php /* * Smarty plugin * --...
-
language.function.debug
...ed for the cached page. In order to see also the variables which have been local...
-
installing.smarty.extended
...! A slightly more flexible way to setup Smarty is to extend the class and initia...
... ? Now you see it is quite simple to bring up an instance of Smarty, just use Sm...
-
index
...() — mutes expected warnings and notices deliberately generated by Smarty...
.... combining modifiers 7.1. Simple assignment 7.2. Assignment with math 7.3. Assi...
-
language.function.include
...mplate Example 7.46. Simple {include} example html head title {$title} /ti...
-
language.function.include.php
... url, name from navigation order by name'); $this- assign('navigation', $db- get...
-
language.function.section
...step through the array backwards. max integer No n/a Sets the maximum number of ...
...on} loop can do, and has a simpler and easier syntax. It is usually preferred ov...
-
resources
...he file resource no longer walks through the include_path unless $use_include_pa...
...tories is traversed in the order they appear in the array. The first template fo...
-
plugins.modifiers
...ing. Example 18.3. A simple modifier plugin This plugin basically aliases ...
-
language.function.html.options
..., types from contact_types order by type'; $smarty- assign('contact_types',$db- ...