-
language.function.html.select.time
... Next {html_select_date} Home {html_table} ...
-
language.modifiers
... Note The default behavior was changed with Smarty 3. In Smarty 2.x, you had to ...
...marty} reserved variable Home cat ...
-
advanced.features.streams
...ext Template Inheritance Home Objects ...
-
installing.smarty.basic
...hapter 2. Installation Home Extended Setup ...
-
tips.dates
...ates As a rule of thumb, always pass dates to Smarty as timestamps . This allows...
...title to header template Home WAP/WML ...
-
charset
...F-8 are very wide spread nowadays, their use is strongly encouraged. Note Smarty...
... Smarty For Programmers Home Chapter 12. Constants ...
-
variable.smarty.debug.id
... Next $right_delimiter Home $template_dir ...
-
variable.cache.lifetime
... will cause the cache to always regenerate (good for testing only, to disable ca...
... Up Next $cache_id Home $cache_locking ...
-
plugins.outputfilters
...t Prefilters/Postfilters Home Resources ...
-
api.get.tags
...xt getRegisteredObject() Home getTemplateDir() ...
-
api.unregister.plugin
...on plugin ?php // we don't want template designers to have access to function pl...
... Next unregisterFilter() Home unregisterObject() ...
-
language.function.php
... Up Next {nocache} Home {section},{sectionelse} ...
-
language.modifier.truncate
...at the end if the variable was truncated. The characters in the string are inclu...
... Up Next to_charset Home unescape ...
-
variable.cache.locking
... Next $cache_lifetime Home $cache_modified_check ...
-
variable.cache.dir
... Next $autoload_filters Home $cache_id ...
-
language.function.append
... 7. Built-in Functions Home {assign} ...
-
variable.default.resource.type
... Next $default_modifiers Home $default_config_handler_func ...
-
language.modifier.spacify
... Next spacify spacify is a way to insert a space between every character of a va...
...ev Up Next replace Home string_format ...
-
language.variables.smarty
...ion of Smarty the template was compiled with. div id="footer" Powered by Smarty ...
...loaded from config files Home Chapter 5. Variable Modifiers ...
-
api.template.exists
... Next setTemplateDir() Home unregisterCacheResource() ...
-
language.syntax.functions
... Up Next Variables Home Attributes ...
-
language.modifier.count.sentences
... Next count_paragraphs Home count_words ...
-
api.test.install
...ext unregisterResource() Home Chapter 15. Caching ...
-
smarty.for.designers
... Next Extended Setup Home Chapter 3. Basic Syntax ...
-
language.function.strip
...e they are displayed. This way you can keep your templates readable, and not wor...
... Up Next {setfilter} Home {while} ...
-
language.syntax.variables
...ith presentation to PHP by way of plugins or modifiers. Request variables such a...
...hapter 3. Basic Syntax Home Functions ...
-
api.assign.by.ref
...gnByRef() is useful if you want a PHP array index value to be affected by its re...
...v Up Next assign() Home clearAllAssign() ...
-
language.function.html.select.date
...Up Next {html_radios} Home {html_select_time} ...
-
language.variable.scopes
...t Chapter 4. Variables Home Variables loaded from config files ...
-
variable.escape.html
... Next $error_reporting Home $force_cache ...
-
api.create.template
...used in the event that you want to cache different content of the same template,...
... Up Next createData() Home disableSecurity() ...
-
language.escaping
... Prev Up Next Math Home Chapter 4. Variables ...
-
variable.trusted.dir
...Up Next $template_dir Home $use_include_path ...
-
variable.plugins.dir
...Up Next $php_handling Home $right_delimiter ...
-
language.function.nocache
... Up Next {literal} Home {php} ...
-
variable.config.read.hidden
...ld leave this FALSE , that way you can store sensitive data in the config files ...
... Next $config_overwrite Home $debug_tpl ...
-
api.append.by.ref
...ndByRef() is useful if you want a PHP array index value to be affected by its re...
...v Up Next append() Home assign() ...
-
variable.use.sub.dirs
...ry having 1000 files. This was certainly the case with Solaris 7 (UFS)... with n...
... Next $use_include_path Home Chapter 14. Smarty Class Methods ...
-
language.modifier.regex.replace
...Prev Up Next nl2br Home replace ...
-
variable.config.dir
... Next $config_booleanize Home $config_overwrite ...
-
variable.compile.id
... Up Next $compile_dir Home $compile_locking ...
-
caching
...n modified since the cache was generated, the cache is immediately regenerated. ...
...set the cache_lifetime for home.tpl to 1 hour $smarty- setCacheLifetime(3600); $...
-
language.modifier.replace
...Up Next regex_replace Home spacify ...
-
variable.default.modifiers
...ext $default_config_type Home $default_resource_type ...
-
language.syntax.quotes
...ngs. This is useful if you want to include variables with modifiers, plugin or P...
... Up Next Attributes Home Math ...
-
advanced.features.template.inheritance
...tree can be as deep as you want, meaning you can extend a file that extends anot...
...ing settings by template Home Streams ...
-
variable.compiler.class
... Next $compile_locking Home $config_booleanize ...
-
api.set.template.dir
... Next setPluginsDir() Home templateExists() ...
-
variable.debugging.ctrl
...ctrl This allows alternate ways to enable debugging. NONE means no alternate met...
... Up Next $debugging Home $default_config_type ...
-
language.custom.functions
...ev Up Next {while} Home {cycle} ...
-
language.function.mailto
... Any extra information you want passed to the link, such as style sheet classes ...
... Up Next {html_table} Home {math} ...
-
language.syntax.attributes
...ith presentation to PHP by way of plugins or modifiers. Prev Up Next Funct...
... Up Next Functions Home Embedding Vars in Double Quotes ...
-
language.modifier.to_charset
... Up Next strip_tags Home truncate ...
-
inforesources
...r 22. Resources Smarty's homepage is located at http://www.smarty.net/ You can...
-
api.register.default.plugin.handler
... Next registerClass() Home registerFilter() ...
-
language.modifier.lower
...rev Up Next indent Home nl2br ...
-
language.function.config.load
...bal config variables are always loaded along with section variables, and same-na...
... Up Next {capture} Home {debug} ...
-
language.function.textformat
...rev Up Next {math} Home Chapter 9. Config Files ...
-
language.function.eval
... = Welcome to {$company}'s home page! ErrorCity = You must supply a {#emphstart#...
-
api.is.cached
...cond parameter in case you want multiple caches for the given template. You can ...
... Next getTemplateVars() Home loadFilter() ...
-
getting.started
...ev Next Preface Home Chapter 1. What is Smarty? ...
-
language.function.for
... Up Next {extends} Home {foreach},{foreachelse} ...
-
variable.template.dir
... Next $smarty_debug_id Home $trusted_dir ...
-
language.basic.syntax
...y For Template Designers Home Variables ...
-
language.builtin.functions
... 6. Combining Modifiers Home {append} ...
-
smarty.constants
...r 11. Charset Encoding Home Chapter 13. Smarty Class Variables ...
-
advanced.features
...plates eg via ftp, and you want to reduce the risk of system security compromise...
...ustom Template Resources Home Changing settings by template ...
-
language.function.html.table
... Next {html_select_time} Home {mailto} ...
-
resources.string
... fill your disk space with wasted compiled strings. Example 16.5. Using templa...
... Chapter 16. Resources Home Stream Template Resources ...
-
plugins
...xception of resources, backwards compatibility with the old way of registering h...
...p Next Output Filters Home Naming Conventions ...
-
advanced.features.template.settings
... 17. Advanced Features Home Template Inheritance ...
-
bugs
... Chapter 22. Resources Home ...
-
language.function.foreach
...= $myValue} , the key is always available as $myValue@key within the foreach loo...
...Prev Up Next {for} Home {function} ...
-
plugins.prefilters.postfilters
... Next Compiler Functions Home Output Filters ...
-
caching.custom
...s being handled for you in way that allows clearing the cache-group "a" and all ...
...g Cacheability of Output Home Chapter 16. Resources ...
-
tips
...e to header template Dates WAP/WML Componentized Templates Obfuscating E-mail Ad...
...er 20. Troubleshooting Home Default Variable Handling ...
-
language.function.html.checkboxes
...ut / content (values are always escaped) Required attributes are values and outp...
...ev Up Next {fetch} Home {html_image} ...
-
chapter.debugging.console
...hapter 9. Config Files Home Part III. Smarty For Programmers ...
-
api.get.config.vars
...p Next getConfigDir() Home getPluginsDir() ...
-
language.function.extends
...ev Up Next {debug} Home {for} ...
-
api.unregister.filter
...nregisterCacheResource() Home unregisterPlugin ...
-
variable.config.booleanize
...values automatically. This way you can use the values in the template like so: {...
... Next $compiler_class Home $config_dir ...
-
api.config.load
...ed from configLoad() are always global in scope. Config files are also compiled ...
...xt compileAllTemplates() Home createData() ...
-
troubleshooting
...mple 20.1. Smarty errors Warning: Smarty: [in index.tpl line 4]: syntax error:...
...xt Part IV. Appendixes Home Chapter 21. Tips Tricks ...
-
language.function.html.image
...ath. This is useful if you want to supply a different server name for the image....
... Next {html_checkboxes} Home {html_options} ...
-
api.functions
...rrors() — mutes expected warnings and notices deliberately generated by Smarty...
...Up Next $use_sub_dirs Home addConfigDir() ...
-
plugins.block.functions
... Up Next Modifiers Home Compiler Functions ...
-
variable.php.handling
...$merge_compiled_includes Home $plugins_dir ...
-
language.combining.modifiers
...v Up Next wordwrap Home Chapter 7. Built-in Functions ...
-
preface
...ilosophy The Smarty design was largely driven by these goals: clean separation o...
... Next Smarty 3 Manual Home Part I. Getting Started ...
-
tips.default.var.handling
...t:'no title'} {* if $title was empty, it now contains the value "no title" when ...
...hapter 21. Tips Tricks Home Passing variable title to header template ...
-
variable.locking.timeout
... Next $left_delimiter Home $merge_compiled_includes ...
-
plugins.writing
...h Smarty), then the proper way to load the needed plugin is this: ?php function ...
... Next Naming Conventions Home Template Functions ...
-
language.math
...ith presentation to PHP by way of plugins or modifiers. Prev Up Next Embed...
...ng Vars in Double Quotes Home Escaping Smarty Parsing ...
-
tips.passing.vars
...efault Variable Handling Home Dates ...
-
variable.caching.type
...v Up Next $caching Home $compile_check ...
-
variable.cache.modified.check
...p Next $cache_locking Home $caching ...
-
api.get.template.vars
... Next getTemplateDir() Home isCached() ...
-
advanced.features.static.classes
...ev Up Next Objects Home Prefilters ...
-
api.unregister.object
... Next unregisterPlugin Home unregisterResource() ...
-
variable.caching
...alue at the time the cache was generated. This way you can set the $cache_lifeti...
...xt $cache_modified_check Home $caching_type ...
-
advanced.features.outputfilters
... Up Next Postfilters Home Chapter 18. Extending Smarty With Plugins ...
-
plugins.inserts
...apter 19. SmartyBC - Backwards Compatibility Wrapper ...
... Up Next Resources Home Chapter 19. SmartyBC - Backwards Compatibili...
-
smarty.for.programmers
...rrors() — mutes expected warnings and notices deliberately generated by Smarty...
... 10. Debugging Console Home Chapter 11. Charset Encoding ...
-
language.modifier.upper
...v Up Next unescape Home wordwrap ...
-
variable.right.delimiter
... Up Next $plugins_dir Home $smarty_debug_id ...
-
plugins.resources
...ins are meant as a generic way of providing template sources or PHP script compo...
...p Next Output Filters Home Inserts ...
-
appendixes
...e to header template Dates WAP/WML Componentized Templates Obfuscating E-mail Ad...
...ds Compatibility Wrapper Home Chapter 20. Troubleshooting ...
-
language.modifier.wordwrap
...at a word boundary. If you want to cut off at the exact character length, pass t...
...Prev Up Next upper Home Chapter 6. Combining Modifiers ...
-
variable.debug_template
...Next $config_read_hidden Home $debugging ...
-
language.function.block
...}The {$smarty.block.child} was inserted here{/block} /title /head /html child.tp...
...v Up Next {assign} Home {call} ...
-
api.clear.assign
... Next clearAllCache() Home clearCache() ...
-
language.modifier.strip
...pplied string. Note If you want to strip blocks of template text, use the built-...
...Up Next string_format Home strip_tags ...
-
variable.autoload.filters
...Up Next $auto_literal Home $cache_dir ...
-
api.get.template.dir
... Up Next getTags() Home getTemplateVars() ...
-
caching.cacheable
...n-function get value as it was the time the page was written to cache everytime ...
... Up Next Cache Groups Home Custom Cache Implementation ...
-
what.is.smarty
...t facilitates a manageable way to separate application logic and content from it...
...art I. Getting Started Home Chapter 2. Installation ...
-
bc
...apter 19. SmartyBC - Backwards Compatibility Wrapper Chapter 19. SmartyBC - ...
...ev Up Next Inserts Home Part IV. Appendixes ...
-
caching.groups
...mes/blue/index.tpl and you want to be able to clear all the cache files for the ...
...Multiple Caches Per Page Home Controlling Cacheability of Output ...
-
api.assign
...Up Next appendByRef() Home assignByRef() ...
-
language.function.if
... Up Next {function} Home {include} ...
-
variable.compile.dir
...p Next $compile_check Home $compile_id ...
-
api.add.plugins.dir
...p Next addConfigDir() Home addTemplateDir() ...
-
language.variables
..."{#bgcolor#}" Note An easy way to examine assigned Smarty variables is with the ...
...ple.com', 'phone' = array('home' = '555-444-3333', 'cell' = '555-111-1234') ) );...
-
advanced.features.postfilters
... Up Next Prefilters Home Output Filters ...
-
api.set.cache.dir
... Next registerResource() Home setCompileDir() ...
-
language.function.setfilter
... {section},{sectionelse} Home {strip} ...
-
language.modifier.unescape
...v Up Next truncate Home upper ...
-
tips.obfuscating.email
...ny spam mailing lists? One way spammers collect email addresses is from web page...
... Componentized Templates Home Chapter 22. Resources ...
-
plugins.naming.conventions
...ding Smarty With Plugins Home Writing Plugins ...
-
language.modifier.escape
...ev Up Next default Home from_charset ...
-
api.fetch
...s is in the event that you want to compile different versions of the same templa...
... Next enableSecurity() Home getCacheDir() ...
-
resources.extends
...tream Template Resources Home Custom Template Resources ...
-
api.compile.all.config
...Up Next clearConfig() Home compileAllTemplates() ...
-
api.register.filter
...the template code after it was compiled to PHP. See template postfilters for mor...
...erDefaultPluginHandler() Home registerPlugin() ...
-
variable.debugging
... Up Next $debug_tpl Home $debugging_ctrl ...
-
api.display
...s is in the event that you want to compile different versions of the same templa...
... Next disableSecurity() Home enableSecurity() ...
-
api.get.compile.dir
...Up Next getCacheDir() Home getConfigDir() ...
-
language.function.assign
...v Up Next {append} Home {block} ...
-
caching.multiple.caches
...on some condition, and you want separate caches for each one. You can do this by...
...xt Chapter 15. Caching Home Cache Groups ...
-
language.function.literal
... Next {ldelim},{rdelim} Home {nocache} ...
-
language.function.html.radios
...ut / content (values are always escaped) Required attributes are values and outp...
...p Next {html_options} Home {html_select_date} ...
-
resources.custom
... file system in some other way by registering under another resource name. Examp...
...tends Template Resources Home Chapter 17. Advanced Features ...
-
config.files
...te colors. Normally if you wanted to change the color scheme of an application, ...
... Up Next {textformat} Home Chapter 10. Debugging Console ...
-
api.register.object
... Next registerPlugin() Home registerResource() ...
-
language.config.variables
... Next Variable scopes Home {$smarty} reserved variable ...
-
plugins.compiler.functions
...ile name and * the time it was compiled. * -------------------------------------...
... Next Block Functions Home Prefilters/Postfilters ...
-
api.get.cache.dir
...ev Up Next fetch() Home getCompileDir() ...
-
api.unregister.resource
... Next unregisterObject() Home testInstall() ...
-
language.function.debug
...Up Next {config_load} Home {extends} ...
-
installing.smarty.extended
...! A slightly more flexible way to setup Smarty is to extend the class and initia...
... Next Basic Installation Home Part II. Smarty For Template Designers ...
-
language.modifier.string.format
...xt string_format This is a way to format strings, such as decimal numbers and su...
...ev Up Next spacify Home strip ...
-
api.set.config.dir
... Next setCompileDir() Home setPluginsDir() ...
-
api.append
... Next addTemplateDir() Home appendByRef() ...
-
variable.force.compile
... Up Next $force_cache Home $left_delimiter ...
-
variable.default.config.type
... Next $debugging_ctrl Home $default_modifiers ...
-
tips.componentized.templates
...{php} . Prev Up Next WAP/WML Home Obfuscating E-mail Addresses ...
...ev Up Next WAP/WML Home Obfuscating E-mail Addresses ...
-
api.register.resource
... is still possible for backward compatibility reasons, it is strongly discourage...
... Next registerObject() Home setCacheDir() ...
-
resources.streams
...tring Template Resources Home Extends Template Resources ...
-
api.load.filter
... Up Next isCached() Home Smarty::muteExpectedErrors() ...
-
language.function.fetch
...rev Up Next {eval} Home {html_checkboxes} ...
-
api.unregister.cacheresource
... Next templateExists() Home unregisterFilter() ...
-
language.function.cycle
...er 8. Custom Functions Home {eval} ...
-
api.get.registered.object
... Next getPluginsDir() Home getTags() ...
-
language.modifier.strip.tags
...Prev Up Next strip Home to_charset ...
-
language.modifier.indent
... Up Next from_charset Home lower ...
-
language.modifier.from_charset
...rev Up Next escape Home indent ...
-
language.modifier.count.characters
...sign('articleTitle', 'Cold Wave Linked to Temperatures.'); ? Where template is: ...
.... Prev Up Next cat Home count_paragraphs ...
-
api.add.config.dir
...4. Smarty Class Methods Home addPluginsDir() ...
-
variable.default.config.handler.func
...t $default_resource_type Home $default_template_handler_func ...
-
advanced.features.objects
...rty website. There are two ways to access them. One way is to register objects t...
...ev Up Next Streams Home Static Classes ...
-
api.compile.all.templates
... Next compileAllConfig() Home configLoad() ...
-
api.clear.compiled.tpl
... Up Next clearCache() Home clearConfig() ...
-
language.modifier.count.paragraphs
...y- assign('articleTitle', "War Dims Hope for Peace. Child's Death Ruins Couple's...
... Next count_characters Home count_sentences ...
-
plugins.functions
...s = array('Yes', 'No', 'No way', 'Outlook not so good', 'Ask again soon', 'Maybe...
... Next Writing Plugins Home Modifiers ...
-
language.function.while
...ev Up Next {strip} Home Chapter 8. Custom Functions ...
-
variable.default.template.handler.func
...ault_config_handler_func Home $direct_access_security ...
-
language.function.include
...ext {if},{elseif},{else} Home {include_php} ...
-
api.get.plugins.dir
... Next getConfigVars() Home getRegisteredObject() ...
-
language.function.math
...v Up Next {mailto} Home {textformat} ...
-
language.modifier.date.format
...assed to date_format are always (except for mysql timestamps, see below) interpr...
... Up Next count_words Home default ...
-
variable.left.delimiter
...p Next $force_compile Home $locking_timeout ...
-
language.function.include.php
... Up Next {include} Home {insert} ...
-
variable.auto.literal
... Smarty Class Variables Home $autoload_filters ...
-
api.enable.security
... Up Next display() Home fetch() ...
-
variable.config.overwrite
...ay. This is helpful if you want to store arrays of data in config files, just li...
... Up Next $config_dir Home $config_read_hidden ...
-
api.disable.security
... Next createTemplate() Home display() ...
-
language.function.section
...step through the array backwards. max integer No n/a Sets the maximum number of ...
...ay('name' = 'John Smith', 'home' = '555-555-5555', 'cell' = '666-555-5555', 'ema...
-
api.add.template.dir
... Next addPluginsDir() Home append() ...
-
resources
...he file resource no longer walks through the include_path unless $use_include_pa...
...tom Cache Implementation Home String Template Resources ...
-
variable.compile.check
...mp) since the last time it was compiled. If it has changed, it recompiles that t...
...Up Next $caching_type Home $compile_dir ...
-
language.function.ldelim
...v Up Next {insert} Home {literal} ...
-
api.variables
... Chapter 12. Constants Home $auto_literal ...
-
language.function.insert
...ic link here, and we don't want this contents cached with the page. In comes the...
...Up Next {include_php} Home {ldelim},{rdelim} ...
-
tips.wap
... WAP/WML WAP/WML wap, wml WAP/WML Prev Chapter 21. Tips Tricks Next WAP/...
...Prev Up Next Dates Home Componentized Templates ...
-
language.function.call
...ev Up Next {block} Home {capture} ...
-
api.clear.config
... clearCompiledTemplate() Home compileAllConfig() ...
-
api.register.cacheresource
...ty::muteExpectedErrors() Home registerClass() ...
-
language.function.function
... {foreach},{foreachelse} Home {if},{elseif},{else} ...
-
variable.use.include.path
... Up Next $trusted_dir Home $use_sub_dirs ...
-
language.function.capture
...name attribute {* we don't want to print a div tag unless content is displayed *...
...rev Up Next {call} Home {config_load} ...
-
api.set.compile.dir
...Up Next setCacheDir() Home setConfigDir() ...
-
language.modifier.count.words
... Next count_sentences Home date_format ...
-
api.clear.all.cache
... Next clearAllAssign() Home clearAssign() ...
-
language.modifier.nl2br
...Prev Up Next lower Home regex_replace ...
-
installation
...ter 1. What is Smarty? Home Basic Installation ...
-
api.create.data
... Up Next configLoad() Home createTemplate() ...
-
variable.error.reporting
... handling will ensure that warnings and notices (deliberately) produced by Smart...
... $direct_access_security Home $escape_html ...
-
variable.direct.access.security
...lt_template_handler_func Home $error_reporting ...
-
variable.force.cache
... Up Next $escape_html Home $force_compile ...
-
plugins.modifiers
... Next Template Functions Home Block Functions ...
-
variable.merge.compiled.includes
... Next $locking_timeout Home $php_handling ...
-
api.register.plugin
... Next registerFilter() Home registerObject() ...
-
api.register.class
... registerCacheResource() Home registerDefaultPluginHandler() ...
-
api.clear.cache
...Up Next clearAssign() Home clearCompiledTemplate() ...
-
api.clear.all.assign
...Up Next assignByRef() Home clearAllCache() ...
-
api.set.plugins.dir
...p Next setConfigDir() Home setTemplateDir() ...
-
api.mute.expected.errors
...rrors() — mutes expected warnings and notices deliberately generated by Smarty...
... Up Next loadFilter() Home registerCacheResource() ...
-
language.modifier.cat
... 5. Variable Modifiers Home count_characters ...
-
language.modifier.default
... Up Next date_format Home escape ...
-
api.get.config.dir
... Next getCompileDir() Home getConfigVars() ...
-
advanced.features.prefilters
...your templates to remove unwanted comments, keeping an eye on what people are pu...
...p Next Static Classes Home Postfilters ...
-
variable.compile.locking
... Up Next $compile_id Home $compiler_class ...
-
variable.cache.id
... Up Next $cache_dir Home $cache_lifetime ...
-
language.function.html.options
... Up Next {html_image} Home {html_radios} ...