-
language.function.html.select.time
...rtotime() . Attribute Name Type Required Default Description prefix string No Ti...
...4_hours=true} At 9:20 and 23 seconds in the morning the template above would out...
-
language.modifiers
... Note The default behavior was changed with Smarty 3. In Smarty 2.x, you had to ...
...iers can be applied to any type of variables, including arrays and objects. Note...
...or was changed with Smarty 3. In Smarty 2.x, you had to use an " @ " symbol to a...
-
plugins.outputfilters
...filter.protect_email.php * Type: outputfilter * Name: protect_email * Purpose: C...
...zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!', '$1%40$2', $output); } ? See also ...
-
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...
... TRUE . Parameter Position Type Required Default Description 1 integer No 80 Thi...
...truncation length setting. 3 boolean No FALSE This determines whether or not to ...
-
language.function.append
...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_...
...type Prev  Chapter 13. Smarty Class Variables  Next $default_resou...
-
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
...h and year. Attribute Name Type Required Default Description prefix string No Da...
...uary /option option value="3" March /option ..... snipped ..... option value="10...
-
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
...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...
...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 ...
...coding too. Attribute Name Type Required Default Description address string Yes ...
...%64%6f% ... snipped ...%61%3e%27%29%3b')) /script {mailto address="me@example.co...
-
language.modifier.to_charset
...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...
...lugin types. Example 14.38. Default Plugin Handler Example ?php $smarty = ...
-
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
...e template. Attribute Name Type Required Default Description var mixed Yes n/a V...
...y invocation. Example 8.3. {eval} The contents of the config file, setup.c...
-
language.function.for
...: Attribute Name Shorthand Type Required Default Description max n/a integer No ...
...or} loop ul {for $foo=1 to 3} li {$foo} /li {/for} /ul The above example will ou...
-
variable.template.dir
...u do not supply a resource type when including files, they will be found here. B...
..._dir Prev  Chapter 13. Smarty Class Variables  Next $template_dir ...
-
language.builtin.functions
...: Attribute Name Shorthand Type Required Default Description scope n/a string No...
...].some_value} Example 7.3. Assignment of an array element {$user.name="Bob...
-
language.function.html.table
...TML table . Attribute Name Type Required Default Description loop array Yes n/a ...
...loop through cols mixed No 3 Number of columns in the table or a comma-separated...
-
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...
...', array(1000,1001,1002,1003)); $smarty- assign('cust_names', array( 'Joe Schmoe...
-
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....
...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 ...
...his.) Starting with Smarty 3.1 the returned value of the opening tag call is dis...
-
preface
...ilosophy The Smarty design was largely driven by these goals: clean separation o...
...re no restrictions on what type of logic can be injected into a template. Smarty...
...heritance is new to Smarty 3, and it's one of many great new features. Before te...
-
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...
...g used to wrap words with. 3 boolean No FALSE This determines whether or not to ...
-
language.function.block
...}The {$smarty.block.child} was inserted here{/block} /title /head /html child.tp...
...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 ...
...t "." symbol. Example 4.3. Accessing associative array variables ?php $sma...
-
language.modifier.unescape
...ape modifier for the given types. Parameter Position Type Required Possible Valu...
-
plugins.naming.conventions
... must be named as follows: type . name .php Where type is one of these plugin ty...
-
language.modifier.escape
... html . Parameter Position Type Required Possible Values Default Description 1 s...
... to htmlentities() et. al. 3 boolean No FALSE TRUE Double encode entites from am...
-
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...
... up some data $address = '245 N 50th'; $db_data = array( 'City' = 'Lincoln', 'St...
-
language.function.assign
...Attributes: Attribute Name Type Required Default Description var string Yes n/a ...
...cope="root"} Example 7.13. {assign} a global variable A glkobal variable i...
-
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...
...input -tags. Example 8.13. {html_radios} first example ?php $smarty- assig...
-
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...
...$smarty- assign('number', 23.5787446); ? Where template is: {$number} {$number|s...
-
variable.default.config.type
... $default_config_type $default_config_type , default_config_type $default_config...
...type Prev  Chapter 13. Smarty Class Variables  Next $default_confi...
-
api.load.filter
... loadFilter ( string type ,            Â...
...lter plugin. Example 14.34. Loading filter plugins ?php // load prefilter ...
-
index
...() — mutes expected warnings and notices deliberately generated by Smarty...
...ed_check $caching $caching_type $compile_check $compile_dir $compile_id $compile...
...le 7.44. {if} statements 7.45. {if} with more examples 7.46. Simple {include} ex...
... Smarty 3 Manual Smarty 3 Manual smarty, 3, manual Smarty 3 Manual   Â...
-
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...
... /td /tr tr class="odd" td 3 /td /tr Prev  Up  Next Chapter 8. Cus...
-
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
...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: ...
...riable. Parameter Position Type Required Default Description 1 boolean No FALSE ...
...Linked to Temperatures. 29 33 See also count_words , count_sentences and count_p...
-
variable.default.config.handler.func
...ed file * * @param string $type resource type (e.g. "file", "string", "eval", "r...
...func Prev  Chapter 13. Smarty Class Variables  Next $default_confi...
-
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
...ed file * * @param string $type resource type (e.g. "file", "string", "eval", "r...
...func Prev  Chapter 13. Smarty Class Variables  Next $default_templ...
-
language.function.include
...Attributes: Attribute Name Type Required Default Description file string Yes n/a...
...ks.tpl below div id="box" h3 {$title}{/h3 ul {foreach from=$links item=l} .. do ...
-
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...
...format. Parameter Position Type Required Default Description 1 string No %b %e, ...
...t: Jan 1, 2022 01/01/22 02:33 pm Dec 31, 2021 Monday, December 1, 2021 14:33:00 ...
-
language.function.include.php
... SmartyBC . Attribute Name Type Required Default Description file string Yes n/a...
...ication code. As of Smarty 3.1 the {include_php} tags are only available from Sm...
-
language.function.section
...step through the array backwards. max integer No n/a Sets the maximum number of ...
...each} loop. Attribute Name Type Required Default Description name string Yes n/a...
...00-555-5555', 'cell' = '123456', 'email' = 'jane@myexample.com') ); $smarty- ass...
...ow , total . Example 7.63. Looping a simple array with {section} assign() ...
-
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...
...invoked. Note As of Smarty 3.1 the file resource no longer walks through the inc...
-
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...
...e template. Attribute Name Type Required Default Description name string Yes n/a...
...etBanner(array("lid" = "12345","sid" = "67890")); and display the returned resul...
...instead. Note As of Smarty 3.1 the {insert} tags are only available from SmartyB...
-
tips.wap
... WAP/WML WAP/WML wap, wml WAP/WML Prev  Chapter 21. Tips Tricks  N...
...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...
...nu = ['item1','item2','item3' = ['item3-1','item3-2','item3-3' = ['item3-3-1','i...
-
language.function.function
...Attributes: Attribute Name Type Required Default Description name string Yes n/a...
...e is called. Example 7.43. Recursive menu {function} example {* define the...
-
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...
...$popText} /a Example 7.23. {capture} into a template array variable This e...
-
plugins.modifiers
... modifier.capitalize.php * Type: modifier * Name: capitalize * Purpose: capitali...
... processing. Example 18.3. A simple modifier plugin This plugin basically ...
-
api.register.plugin
...egisterPlugin ( string type ,            Â...
...em properly. Example 14.39. register a function plugin ?php $smarty- regis...
-
language.modifier.cat
...riable. Parameter Position Type Required Default Description 1 string No empty T...
...ven variable. Example 5.3. cat ?php $smarty- assign('articleTitle', "Psych...
-
language.modifier.default
...gument. Parameter Position Type Required Default Description 1 string No empty T...
-
language.function.html.options
...lt as well. Attribute Name Type Required Default Description values array Yes, u...
...', 9904 = 'Jack Smith', 2003 = 'Charlie Brown') ); $smarty- assign('mySelect', 9...