-
language.function.html.select.time
...rtotime() . Attribute Name Type Required Default Description prefix string No Ti...
-
language.modifiers
... Note The default behavior was changed with Smarty 3. In Smarty 2.x, you had to ...
...ble of Contents capitalize cat count_characters count_paragraphs count_sentences...
...iers can be applied to any type of variables, including arrays and objects. Note...
-
plugins.outputfilters
...filter.protect_email.php * Type: outputfilter * Name: protect_email * Purpose: C...
-
api.unregister.plugin
...on plugin ?php // we don't want template designers to have access to function pl...
...egisterPlugin ( string type ,            Â...
-
language.modifier.truncate
...at the end if the variable was truncated. The characters in the string are inclu...
... truncate truncate truncate truncate Prev  Chapter 5. Variable Modifie...
... TRUE . Parameter Position Type Required Default Description 1 integer No 80 Thi...
-
language.function.append
...s essentially placing application logic into the presentation that may be better...
...Attributes: Attribute Name Type Required Default Description var string Yes n/a ...
-
variable.default.resource.type
... $default_resource_type $default_resource_type , default_resource_type $default_...
-
language.modifier.spacify
... Next spacify spacify is a way to insert a space between every character of a va...
...insert. Parameter Position Type Required Default Description 1 string No one spa...
-
language.function.html.select.date
... as time-attribute to indicate an unselected year. month_empty string No null I...
...h and year. Attribute Name Type Required Default Description prefix string No Da...
-
api.create.template
...used in the event that you want to cache different content of the same template,...
... a valid template resource type and path. cache_id is an optional parameter. You...
-
language.modifier.regex.replace
...ssions are considered application code and are not part of presentation logic. P...
...ameters Parameter Position Type Required Default Description 1 string Yes n/a Th...
-
language.modifier.replace
...nction. Parameter Position Type Required Default Description 1 string Yes n/a Th...
-
advanced.features.template.inheritance
...tree can be as deep as you want, meaning you can extend a file that extends anot...
...tree are checked for modifications upon each invocation. You may want to disable...
...extends: template resource type. The later provides even more flexibillity. Note...
-
language.custom.functions
...e template. Attribute Name Type Required Default Description name string No defa...
-
language.function.mailto
... Any extra information you want passed to the link, such as style sheet classes ...
...pe , {textformat} and obfuscating email addresses . Prev  Up  Next {html...
...coding too. Attribute Name Type Required Default Description address string Yes ...
-
language.modifier.to_charset
...uld be handled by the application itself. This modifier should only be used in c...
...ifier . Parameter Position Type Required Possible Values Default Description 1 s...
-
api.register.default.plugin.handler
... looping over valid plugin types. Example 14.38. Default Plugin Handler Ex...
-
language.function.config.load
...bal config variables are always loaded along with section variables, and same-na...
...Attributes: Attribute Name Type Required Default Description file string Yes n/a...
-
language.function.textformat
...able style. Attribute Name Type Required Default Description style string No n/a...
-
language.function.eval
... are compiled on every invocation, the compiled versions are not saved! However ...
...e template. Attribute Name Type Required Default Description var mixed Yes n/a V...
-
language.function.for
...: Attribute Name Shorthand Type Required Default Description max n/a integer No ...
-
variable.template.dir
...u do not supply a resource type when including files, they will be found here. B...
-
language.builtin.functions
...s essentially placing application logic into the presentation that may be better...
...: Attribute Name Shorthand Type Required Default Description scope n/a string No...
-
language.function.html.table
...TML table . Attribute Name Type Required Default Description loop array Yes n/a ...
-
resources.string
... fill your disk space with wasted compiled strings. Example 16.5. Using te...
...te With a string: resource type, each unique string generates a compiled file. S...
-
plugins
...xception of resources, backwards compatibility with the old way of registering h...
...ltiple filters of the same type are executed depends on the order in which they ...
-
plugins.prefilters.postfilters
...ile: prefilter.pre01.php * Type: prefilter * Name: pre01 * Purpose: Convert html...
-
language.function.html.checkboxes
...ut / content (values are always escaped) Required attributes are values and outp...
...lt as well. Attribute Name Type Required Default Description name string No chec...
-
language.function.extends
...Attributes: Attribute Name Type Required Default Description file string Yes n/a...
-
api.unregister.filter
...egisterFilter ( string type ,            Â...
-
language.function.html.image
...ath. This is useful if you want to supply a different server name for the image....
..., then the image must be located in the $secure_dir path of the securty policy. ...
...t supplied. Attribute Name Type Required Default Description file string Yes n/a...
-
plugins.block.functions
...ile: block.translate.php * Type: block * Name: translate * Purpose: translate a ...
-
preface
...ilosophy The Smarty design was largely driven by these goals: clean separation o...
... of presentation from application code PHP backend, Smarty template frontend com...
...re no restrictions on what type of logic can be injected into a template. Smarty...
-
plugins.inserts
...r 19. SmartyBC - Backwards Compatibility Wrapper ...
... * File: insert.time.php * Type: time * Name: time * Purpose: Inserts current da...
-
language.modifier.wordwrap
...at a word boundary. If you want to cut off at the exact character length, pass t...
...nction. Parameter Position Type Required Default Description 1 integer No 80 Thi...
-
language.function.block
...}The {$smarty.block.child} was inserted here{/block} /title /head /html child.tp...
...e can be inserted at any location of the child {block} content. {$smarty.block.c...
...Attributes: Attribute Name Type Required Default Description name string Yes n/a...
-
language.variables
..."{#bgcolor#}" Note An easy way to examine assigned Smarty variables is with the ...
...arty has several different types of variables. The type of the variable depends ...
-
language.modifier.unescape
...Prev  Up  Next truncate Home  upper ...
...ape modifier for the given types. Parameter Position Type Required Possible Valu...
-
plugins.naming.conventions
...onvention in order to be located by Smarty. plugin files must be named as follow...
... must be named as follows: type . name .php Where type is one of these plugin ty...
-
language.modifier.escape
...er registers the current location *} a href="$my_path?page=foo rewind=$my_uri|ur...
... html . Parameter Position Type Required Possible Values Default Description 1 s...
-
api.fetch
...s is in the event that you want to compile different versions of the same templa...
... a valid template resource type and path. As an optional second parameter, you c...
-
api.register.filter
...the template code after it was compiled to PHP. See template postfilters for mor...
...egisterFilter ( string type ,            Â...
-
api.display
...s is in the event that you want to compile different versions of the same templa...
... a valid template resource type and path. As an optional second parameter, you c...
-
language.function.assign
...s essentially placing application logic into the presentation that may be better...
...Attributes: Attribute Name Type Required Default Description var string Yes n/a ...
-
language.function.html.radios
...ut / content (values are always escaped) Required attributes are values and outp...
...lt as well. Attribute Name Type Required Default Description name string No radi...
-
plugins.compiler.functions
...ile name and * the time it was compiled. * -------------------------------------...
...: compiler.tplheader.php * Type: compiler * Name: tplheader * Purpose: Output he...
-
language.modifier.string.format
...xt string_format This is a way to format strings, such as decimal numbers and su...
...atting. Parameter Position Type Required Default Description 1 string Yes n/a Th...
-
variable.default.config.type
... $default_config_type $default_config_type , default_config_type $default_config...
-
api.load.filter
... loadFilter ( string type ,            Â...
-
index
...() — mutes expected warnings and notices deliberately generated by Smarty...
...iable Modifiers capitalize cat count_characters count_paragraphs count_sentences...
...ed_check $caching $caching_type $compile_check $compile_dir $compile_id $compile...
-
language.function.fetch
...e template. Attribute Name Type Required Default Description file string Yes n/a...
-
language.function.cycle
... of values. Attribute Name Type Required Default Description name string No defa...
-
language.modifier.strip.tags
...n and . Parameter Position Type Required Default Description 1 bool No TRUE This...
-
language.modifier.indent
... a tab. Parameter Position Type Required Default Description 1 integer No 4 This...
-
language.modifier.from_charset
...uld be handled by the application itself. This modifier should only be used in c...
...ifier . Parameter Position Type Required Possible Values Default Description 1 s...
-
language.modifier.count.characters
...sign('articleTitle', 'Cold Wave Linked to Temperatures.'); ? Where template is: ...
...s . Prev  Up  Next cat Home  count_paragraphs ...
...riable. Parameter Position Type Required Default Description 1 boolean No FALSE ...
-
variable.default.config.handler.func
...r $modified config's modification time * @param Smarty $smarty Smarty instance *...
...ed file * * @param string $type resource type (e.g. "file", "string", "eval", "r...
-
plugins.functions
...s = array('Yes', 'No', 'No way', 'Outlook not so good', 'Ask again soon', 'Maybe...
...: function.eightball.php * Type: function * Name: eightball * Purpose: outputs a...
-
variable.default.template.handler.func
...$modified template's modification time * @param Smarty $smarty Smarty instance *...
...ed file * * @param string $type resource type (e.g. "file", "string", "eval", "r...
-
language.function.include
...Attributes: Attribute Name Type Required Default Description file string Yes n/a...
-
language.function.math
...ion} loops. Attribute Name Type Required Default Description equation string Yes...
-
language.modifier.date.format
...assed to date_format are always (except for mysql timestamps, see below) interpr...
...ear divided by 100 and truncated to an integer, range 00 to 99) %d - day of the ...
...format. Parameter Position Type Required Default Description 1 string No %b %e, ...
-
language.function.include.php
...TICE {include_php} is deprecated from Smarty, use registered plugins to properly...
... SmartyBC . Attribute Name Type Required Default Description file string Yes n/a...
-
language.function.section
...step through the array backwards. max integer No n/a Sets the maximum number of ...
...ray) are automatically truncated to the closest valid value. step integer No 1 T...
...each} loop. Attribute Name Type Required Default Description name string Yes n/a...
-
resources
...he file resource no longer walks through the include_path unless $use_include_pa...
...ate, you supply a resource type, followed by the appropriate path and template n...
-
language.function.ldelim
...ript language="JavaScript" type="text/javascript" function myJsFunction(){ldelim...
-
language.function.insert
...ic link here, and we don't want this contents cached with the page. In comes the...
...ICE {insert} tags are deprecated from Smarty, and should not be used. Put your P...
...e template. Attribute Name Type Required Default Description name string Yes n/a...
-
tips.wap
... WAP/WML WAP/WML wap, wml WAP/WML Prev  Chapter 21. Tips Tricks  N...
...ion somewhere in your application, or in Smarty.addons.php function insert_heade...
...ates require a php Content-Type header to be passed along with the template. The...
-
language.function.call
...Attributes: Attribute Name Type Required Default Description name string Yes n/a...
-
language.function.function
...Attributes: Attribute Name Type Required Default Description name string Yes n/a...
-
language.function.capture
...name attribute {* we don't want to print a div tag unless content is displayed *...
...Attributes: Attribute Name Type Required Default Description name string Yes n/a...
-
plugins.modifiers
...----- * File: modifier.truncate.php * Type: modifier * Name: truncate * Purpose:...
... modifier.capitalize.php * Type: modifier * Name: capitalize * Purpose: capitali...
-
api.register.plugin
...egisterPlugin ( string type ,            Â...
-
language.modifier.cat
... cat cat cat cat Prev  Chapter 5. Variable Modifiers  Next cat Thi...
...riable. Parameter Position Type Required Default Description 1 string No empty T...
-
language.modifier.default
...gument. Parameter Position Type Required Default Description 1 string No empty T...
-
language.function.html.options
...s. Note the use of the truncate modifier. select name="type_id" option value='nu...
...lt as well. Attribute Name Type Required Default Description values array Yes, u...