-
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...
... be applied to variables , custom functions or strings. To apply a modifier, spe...
-
language.function.html.options
..., types from contact_types order by type'; $smarty- assign('contact_types',$db- ...
...ions} Prev Chapter 8. Custom Functions Next {html_options} {html_options...
-
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...
...Extends Template Resources Custom Template Resources The templates may come from...
-
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- ...
...dios} Prev Chapter 8. Custom Functions Next {html_radios} {html_radios} ...
-
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- ...
...oxes} Prev Chapter 8. Custom Functions Next {html_checkboxes} {html_chec...
-
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 ...
...is used for almost all the customizable functionality of Smarty. This includes: ...
-
language.function.html.select.date
...E Display years in reverse order field_array string No null If a name is given, ...
...date} Prev Chapter 8. Custom Functions Next {html_select_date} {html_sel...
-
api.get.registered.object
...is is useful from within a custom function when you need direct access to a regi...
-
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...
-
resources.extends
...emplate Resources Home Custom Template Resources ...
-
language.syntax.functions
...oth built-in functions and custom functions have the same syntax within template...
-
resources.custom
... file system in some other way by registering under another resource name. Examp...
... Custom Template Resources Custom Template Resources custom, template, resources...
-
plugins.compiler.functions
...ile name and * the time it was compiled. * -------------------------------------...
... a compiler function and a custom function registered under the same name, the c...
-
language.function.debug
...ed for the cached page. In order to see also the variables which have been local...
-
tips.componentized.templates
...{php} . Prev Up Next WAP/WML Home Obfuscating E-mail Addresses ...
...u can do this by writing a custom plugin for fetching the content and assigning ...
-
index
...rrors() — mutes expected warnings and notices deliberately generated by Smarty...
...filter} {strip} {while} 8. Custom Functions {counter} {cycle} {eval} {fetch} {ht...
-
language.function.fetch
...etch} Prev Chapter 8. Custom Functions Next {fetch} {fetch} is used to r...
-
api.unregister.cacheresource
...terCacheResource() and the Custom CacheResource Implementation section. Prev ...
-
language.function.cycle
...ycle} Prev Chapter 8. Custom Functions Next {cycle} {cycle} is used to a...
-
what.is.smarty
...t facilitates a manageable way to separate application logic and content from it...
...can easily create your own custom functions and variable modifiers , so the temp...
-
advanced.features.objects
...rty website. There are two ways to access them. One way is to register objects t...
...them via syntax similar to custom functions . The other way is to assign() objec...
-
language.function.while
...rip} Home Chapter 8. Custom Functions ...
-
language.function.math
...math} Prev Chapter 8. Custom Functions Next {math} {math} allows the tem...
-
language.function.include.php
... url, name from navigation order by name'); $this- assign('navigation', $db- get...
-
variable.cache.dir
... You can also use your own custom cache implementation to control cache files, w...
-
tips.wap
... WAP/WML WAP/WML wap, wml WAP/WML Prev Chapter 21. Tips Tricks Next WAP/...
...o this would be to write a custom function that prints the header. If you are us...
-
api.register.cacheresource
... Smarty_CacheResource. See Custom Cache Implementation for more information on h...
-
variable.error.reporting
... handling will ensure that warnings and notices (deliberately) produced by Smart...
...Errors(); after setting up custom error handling will ensure that warnings and n...
-
api.mute.expected.errors
...rrors() — mutes expected warnings and notices deliberately generated by Smarty...
...pectedErrors() registers a custom error handler using set_error_handler() . The ...
-
language.function.html.select.time
...time} Prev Chapter 8. Custom Functions Next {html_select_time} {html_sel...
-
smarty.for.designers
...filter} {strip} {while} 8. Custom Functions {counter} {cycle} {eval} {fetch} {ht...
-
variable.plugins.dir
...ch plugin directory in the order they are given . Technical Note For best perfor...
-
language.modifier.regex.replace
...essions in PHP, either via custom functions or modifiers. Regular expressions ar...
-
caching
...n modified since the cache was generated, the cache is immediately regenerated. ...
...es Cacheability of Plugins Custom Cache Implementation Caching is used to speed ...
-
language.custom.functions
... Chapter 8. Custom Functions Chapter 8. Custom Functions chapter, 8, custom,...
-
language.function.mailto
... Any extra information you want passed to the link, such as style sheet classes ...
...ilto} Prev Chapter 8. Custom Functions Next {mailto} {mailto} automates ...
-
language.function.textformat
...rmat} Prev Chapter 8. Custom Functions Next {textformat} {textformat} is...
-
language.function.eval
...eval} Prev Chapter 8. Custom Functions Next {eval} {eval} is used to eva...
-
language.builtin.functions
...You cannot create your own custom functions with the same name; and you should n...
-
advanced.features
...plates eg via ftp, and you want to reduce the risk of system security compromise...
...h '_') by the template. To customize the security policy settings you can extend...
-
language.function.html.table
...able table_attr string No border="1" Attributes for table tag th_attr string No ...
...able} Prev Chapter 8. Custom Functions Next {html_table} {html_table} is...
-
caching.custom
...s being handled for you in way that allows clearing the cache-group "a" and all ...
... Custom Cache Implementation Custom Cache Implementation custom, cache, implemen...
-
variable.escape.html
...s are run in the following order: modifier, default_modifier, $escape_html, regi...
-
troubleshooting
...mple 20.1. Smarty errors Warning: Smarty: [in index.tpl line 4]: syntax error:...
...r application registered a custom error hander (using set_error_handler() ) whic...
-
language.function.html.image
...ath. This is useful if you want to supply a different server name for the image....
...mage} Prev Chapter 8. Custom Functions Next {html_image} {html_image} is...
-
plugins.block.functions
...tions take precedence over custom functions of the same name, that is, you canno...
-
variable.php.handling
...is highly discouraged. Use custom functions or modifiers instead. Prev Up ...
-
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...
... necessary flexibility for custom development security: insulation from PHP free...
-
variable.caching.type
...m based cache handler. See Custom Cache Implementation for pointers on setting u...
-
smarty.for.programmers
...rrors() — mutes expected warnings and notices deliberately generated by Smarty...
...es Cacheability of Plugins Custom Cache Implementation 16. Resources File Templa...
-
plugins.resources
...ins are meant as a generic way of providing template sources or PHP script compo...
...emory, sockets, and so on. Custom Resources may be put in a file resource.foobar...
-
caching.cacheable
...n-function get value as it was the time the page was written to cache everytime ...
...Next Cache Groups Home Custom Cache Implementation ...