-
language.function.eval
...sn't have to run the (comparably slow) compiler on every invocation. Example ...
...Prev  Chapter 8. Custom Functions  Next {eval} {eval} is used to e...
... rdelim, {eval} Prev  Chapter 8. Custom Functions  Next {eval} {ev...
...company}'s home page! ErrorCity = You must supply a {#emphstart#}city{#emphend#}...
-
language.function.html.select.time
...Prev  Chapter 8. Custom Functions  Next {html_select_time} {html_s...
... {html_select_time} {html_select_time} , ldelim, html_select_time, rdelim, {html...
-
language.modifiers
... Note The default behavior was changed with Smarty 3. In Smarty 2.x, you had to ...
...-parameters is not the desirable one. Formatting $foo with {"%2.f"|sprintf:$foo}...
... be applied to variables , custom functions or strings. To apply a modifier, spe...
... Chapter 5. Variable Modifiers Chapter 5. Variable Modifiers chapter...
-
variable.cache.dir
... You can also use your own custom cache implementation to control cache files, w...
... $cache_dir $cache_dir , cache_dir $cache_dir Prev  Chapter 13. Smarty...
-
language.syntax.functions
...oth built-in functions and custom functions have the same syntax within template...
...tions Functions Prev  Chapter 3. Basic Syntax  Next Functions Ever...
-
smarty.for.designers
...filter} {strip} {while} 8. Custom Functions {counter} {cycle} {eval} {fetch} {ht...
...g Vars in Double Quotes Math Escaping Smarty Parsing 4. Variables Variables assi...
-
language.function.html.select.date
...Prev  Chapter 8. Custom Functions  Next {html_select_date} {html_s...
... {html_select_date} {html_select_date} , ldelim, html_select_date, rdelim, {html...
-
language.modifier.regex.replace
...essions in PHP, either via custom functions or modifiers. Regular expressions ar...
...e regex_replace Prev  Chapter 5. Variable Modifiers  Next regex_re...
-
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 ...
... Chapter 15. Caching Chapter 15. Caching chapter, 15, caching Chapte...
-
language.custom.functions
... Chapter 8. Custom Functions Chapter 8. Custom Functions chapter, 8,...
... Chapter 8. Custom Functions Chapter 8. Custom Functions chapter, 8,...
-
language.function.mailto
... Any extra information you want passed to the link, such as style sheet classes ...
...Prev  Chapter 8. Custom Functions  Next {mailto} {mailto} automate...
...delim, {mailto} Prev  Chapter 8. Custom Functions  Next {mailto} {...
-
language.function.textformat
...Prev  Chapter 8. Custom Functions  Next {textformat} {textformat} ...
...m, {textformat} Prev  Chapter 8. Custom Functions  Next {textforma...
-
language.builtin.functions
...You cannot create your own custom functions with the same name; and you should n...
... Chapter 7. Built-in Functions Chapter 7. Built-in Functions chapter...
-
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...
... Chapter 17. Advanced Features Chapter 17. Advanced Features chapter...
-
language.function.html.table
...Prev  Chapter 8. Custom Functions  Next {html_table} {html_table} ...
... {html_table} {html_table} , ldelim, html_table, rdelim, {html_table} Prev  ...
-
plugins
...xception of resources, backwards compatibility with the old way of registering h...
...is used for almost all the customizable functionality of Smarty. This includes: ...
... Chapter 18. Extending Smarty With Plugins Chapter 18. Extending Sma...
-
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...
... Custom Cache Implementation Custom Cache Implementation custom, cache, implemen...
-
language.function.html.checkboxes
...ut / content (values are always escaped) Required attributes are values and outp...
...Prev  Chapter 8. Custom Functions  Next {html_checkboxes} {html_ch...
... {html_checkboxes} {html_checkboxes} , ldelim, html_checkboxes, rdelim, {html_ch...
-
troubleshooting
... 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...
... Chapter 20. Troubleshooting Chapter 20. Troubleshooting chapter, 20...
-
language.function.html.image
...ath. This is useful if you want to supply a different server name for the image....
...Prev  Chapter 8. Custom Functions  Next {html_image} {html_image} ...
... {html_image} {html_image} , ldelim, html_image, rdelim, {html_image} Prev  ...
-
plugins.block.functions
...tions take precedence over custom functions of the same name, that is, you canno...
...Block Functions Prev  Chapter 18. Extending Smarty With Plugins  N...
-
variable.php.handling
...is highly discouraged. Use custom functions or modifiers instead. Prev  Up ...
... $php_handling $php_handling , php_handling $php_handling Prev  Chapter 1...
-
preface
...ilosophy The Smarty design was largely driven by these goals: clean separation o...
... necessary flexibility for custom development security: insulation from PHP free...
... Â Â Next Preface The Philosophy The Smarty design was largely driven by...
...ver those tools. The simplicity of the tag-based syntax is also a huge welcome f...
-
variable.caching.type
...m based cache handler. See Custom Cache Implementation for pointers on setting u...
... $caching_type $caching_type , caching_type $caching_type Prev  Chapter 1...
-
smarty.for.programmers
...() — mutes expected warnings and notices deliberately generated by Smarty...
...es Cacheability of Plugins Custom Cache Implementation 16. Resources File Templa...
...ers Table of Contents 11. Charset Encoding Charset Encoding 12. Constants SMARTY...
-
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...
...urces Resources Prev  Chapter 18. Extending Smarty With Plugins  N...
-
caching.cacheable
...n-function get value as it was the time the page was written to cache everytime ...
... Cache Groups Home  Custom Cache Implementation ...
... Controlling Cacheability of Output Controlling Cacheability of Output controlli...
-
what.is.smarty
...t facilitates a manageable way to separate application logic and content from it...
...tremely extensible. Configurable template {delimiter} tag syntax, so you can use...
...can easily create your own custom functions and variable modifiers , so the temp...
... Chapter 1. What is Smarty? Chapter 1. What is Smarty? chapter, 1, w...
-
api.assign
...ssign, assign() Prev  Chapter 14. Smarty Class Methods  Next Name ...
...ray $smarty- assign(array('city' = 'Lincoln', 'state' = 'Nebraska')); // passing...
-
resources.extends
...ate Resources Home  Custom Template Resources ...
...plate Resources Prev  Chapter 16. Resources  Next Extends Template...
-
api.display
...s is in the event that you want to compile different versions of the same templa...
...play, display() Prev  Chapter 14. Smarty Class Methods  Next Name ...
... 50th'; $db_data = array( 'City' = 'Lincoln', 'State' = 'Nebraska', 'Zip' = '685...
-
language.function.html.radios
...ut / content (values are always escaped) Required attributes are values and outp...
...Prev  Chapter 8. Custom Functions  Next {html_radios} {html_radios...
... {html_radios} {html_radios} , ldelim, html_radios, rdelim, {html_radios} Prev ...
-
resources.custom
... file system in some other way by registering under another resource name. Examp...
... Custom Template Resources Custom Template Resources custom, template, resources...
...plate Resources Prev  Chapter 16. Resources  Next Custom Template ...
-
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...
...piler Functions Prev  Chapter 18. Extending Smarty With Plugins  N...
-
api.append
...ppend, append() Prev  Chapter 14. Smarty Class Methods  Next Name ...
...ray $smarty- append(array('city' = 'Lincoln', 'state' = 'Nebraska')); ? See also...
-
tips.componentized.templates
...} . 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 ...
...tized Templates Prev  Chapter 21. Tips Tricks  Next Componentized ...
-
index
...() — mutes expected warnings and notices deliberately generated by Smarty...
...filter} {strip} {while} 8. Custom Functions {counter} {cycle} {eval} {fetch} {ht...
... Â Â Next Smarty - the compiling PHP template engine Monte Ohrt monte at ...
-
language.function.fetch
...Prev  Chapter 8. Custom Functions  Next {fetch} {fetch} is used to...
... {fetch} {fetch} , ldelim, fetch, rdelim, {fetch} Prev  Chapter 8. Cus...
-
api.unregister.cacheresource
...terCacheResource() and the Custom CacheResource Implementation section. Prev Â...
... unregisterCacheResource() unregisterCacheResource() unregistercacheresource, un...
-
language.function.cycle
...Prev  Chapter 8. Custom Functions  Next {cycle} {cycle} is used to...
...rdelim, {cycle} Prev  Chapter 8. Custom Functions  Next {cycle} {c...
-
api.get.registered.object
...is is useful from within a custom function when you need direct access to a regi...
...isteredObject() Prev  Chapter 14. Smarty Class Methods  Next Name ...
-
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...
...objects Objects Prev  Chapter 17. Advanced Features  Next Objects ...
-
language.function.while
... Home  Chapter 8. Custom Functions ...
... {while} {while} , ldelim, while, rdelim, {while} Prev  Chapter 7. Bui...
-
language.function.math
...Prev  Chapter 8. Custom Functions  Next {math} {math} allows the t...
... {math} {math} , ldelim, math, rdelim, {math} Prev  Chapter 8. Custom ...
-
resources
...he file resource no longer walks through the include_path unless $use_include_pa...
...Extends Template Resources Custom Template Resources The templates may come from...
... Chapter 16. Resources Chapter 16. Resources chapter, 16, resources ...
-
tips.wap
... WAP/WML WAP/WML wap, wml WAP/WML Prev  Chapter 21. Tips Tricks  N...
...o this would be to write a custom function that prints the header. If you are us...
...ap, wml WAP/WML Prev  Chapter 21. Tips Tricks  Next WAP/WML WAP/WM...
-
api.register.cacheresource
... Smarty_CacheResource. See Custom Cache Implementation for more information on h...
... registerCacheResource() registerCacheResource() registercacheresource, register...
-
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...
...error_reporting Prev  Chapter 13. Smarty Class Variables  Next $er...
-
api.mute.expected.errors
...() — mutes expected warnings and notices deliberately generated by Smarty...
...pectedErrors() registers a custom error handler using set_error_handler() . The ...
...xpectedErrors() Prev  Chapter 14. Smarty Class Methods  Next Name ...
-
language.function.html.options
...Prev  Chapter 8. Custom Functions  Next {html_options} {html_optio...
... {html_options} {html_options} , ldelim, html_options, rdelim, {html_options} Pr...