-
api.unregister.cacheresource
...terCacheResource() and the Custom CacheResource Implementation section. Prev ...
-
smarty.for.programmers
...rrors() — mutes expected warnings and notices deliberately generated by Smarty...
... Table of Contents 11. Charset Encoding Charset Encoding 12. Constants SMARTY_DI...
...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...
... ENGINE=InnoDB DEFAULT CHARSET=utf8; /pre * * Demo data: * pre INSERT INTO `temp...
...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 ...
...being cached ?php $smarty- setCaching(Smarty::CACHING_LIFETIME_CURRENT); functio...
...Next Cache Groups Home Custom Cache Implementation ...
-
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...
-
resources.extends
...emplate Resources Home Custom Template Resources ...
-
language.function.html.radios
...ut / content (values are always escaped) Required attributes are values and outp...
...dios} Prev Chapter 8. Custom Functions Next {html_radios} {html_radios} ...
-
resources.custom
... file system in some other way by registering under another resource name. Examp...
... ENGINE=InnoDB DEFAULT CHARSET=utf8; /pre * * Demo data: * pre INSERT INTO `temp...
... 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...
-
tips.componentized.templates
...{php} . Prev Up Next WAP/WML Home Obfuscating E-mail Addresses ...
...$plugins directory ?php // setup our function for fetching stock data function f...
...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...
...asic Installation Extended Setup II. Smarty For Template Designers 3. Basic Synt...
...filter} {strip} {while} 8. Custom Functions {counter} {cycle} {eval} {fetch} {ht...
-
language.function.fetch
...If the assign attribute is set, the output of the {fetch} function will be assig...
...etch} Prev Chapter 8. Custom Functions Next {fetch} {fetch} is used to r...
-
variable.caching.type
...ementation for pointers on setting up your own cache handler. Prev Up Next...
...m based cache handler. See Custom Cache Implementation for pointers on setting u...
-
language.function.cycle
...le} is used to alternate a set of values. This makes it easy to for example, alt...
...ycle} Prev Chapter 8. Custom Functions Next {cycle} {cycle} is used to a...
-
api.get.registered.object
...($params, $smarty) { if (isset($params['object'])) { // get reference to registe...
...is is useful from within a custom function when you need direct access to a regi...
-
advanced.features.objects
...rty website. There are two ways to access them. One way is to register objects t...
... object parameter passing, set the fourth registration parameter to FALSE . The ...
...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...
-
resources
...he file resource no longer walks through the include_path unless $use_include_pa...
...ebsites employing multiple sets of templates better control over which template ...
...Extends Template Resources Custom Template Resources The templates may come from...
-
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...
...porting When this value is set to a non-null-value it's value is used as php's e...
...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...
...custom error handler using set_error_handler() . The error handler merely inspec...
...pectedErrors() registers a custom error handler using set_error_handler() . The ...
-
language.function.html.options
... function as a modifier to set the select size). select name="customer_id" size=...
...ions} Prev Chapter 8. Custom Functions Next {html_options} {html_options...
-
language.builtin.functions
...rownum .loop .show .total {setfilter} {strip} {while} Smarty comes with several ...
...You cannot create your own custom functions with the same name; and you should n...
-
language.modifiers
... Note The default behavior was changed with Smarty 3. In Smarty 2.x, you had to ...
...at default escape from_charset indent lower nl2br regex_replace replace spacify ...
... be applied to variables , custom functions or strings. To apply a modifier, spe...
-
variable.cache.dir
...es, which will ignore this setting. See also $use_sub_dirs . Technical Note This...
... You can also use your own custom cache implementation to control cache files, w...
-
language.syntax.functions
...oth built-in functions and custom functions have the same syntax within template...
-
smarty.for.designers
...at default escape from_charset indent lower nl2br regex_replace replace spacify ...
...filter} {strip} {while} 8. Custom Functions {counter} {cycle} {eval} {fetch} {ht...
-
language.function.html.select.date
...function if field_array is set. No current timestamp What date/time to pre-selec...
...date} Prev Chapter 8. Custom Functions Next {html_select_date} {html_sel...
-
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. ...
... Caching Table of Contents Setting Up Caching Multiple Caches Per Page Cache Gro...
...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
...d indenting lines. You can set the parameters explicitly, or use a preset style....
...rmat} Prev Chapter 8. Custom Functions Next {textformat} {textformat} is...
-
language.function.eval
...ntents of the config file, setup.conf . emphstart = strong emphend = /strong tit...
...eval} Prev Chapter 8. Custom Functions Next {eval} {eval} is used to eva...
-
language.function.html.select.time
...function if field_array is set. No current timestamp What date/time to pre-selec...
...time} Prev Chapter 8. Custom Functions Next {html_select_time} {html_sel...
-
advanced.features
...plates eg via ftp, and you want to reduce the risk of system security compromise...
...Contents Security Changing settings by template Template Inheritance Streams Obj...
...h '_') by the template. To customize the security policy settings you can extend...
-
language.function.html.table
...able} Prev Chapter 8. Custom Functions Next {html_table} {html_table} is...
-
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: ...
-
caching.custom
...s being handled for you in way that allows clearing the cache-group "a" and all ...
...In either case you need to set $caching_type to invoke your custom CacheResource...
... 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...
...oxes} Prev Chapter 8. Custom Functions Next {html_checkboxes} {html_chec...
-
troubleshooting
...mple 20.1. Smarty errors Warning: Smarty: [in index.tpl line 4]: syntax error:...
...compile_dir is incorrectly set, the directory does not exist, or templates_c is ...
...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
...ng tag if(!$repeat){ if (isset($content)) { $lang = $params['lang']; // do some ...
...tions take precedence over custom functions of the same name, that is, you canno...
-
variable.php.handling
...s. There are four possible settings, the default being Smarty::PHP_PASSTHRU . No...
...is highly discouraged. Use custom functions or modifiers instead. Prev Up ...
-
preface
...ilosophy The Smarty design was largely driven by these goals: clean separation o...
...ode separation from the outset. There are libraries available to mix Python with...
... necessary flexibility for custom development security: insulation from PHP free...