-
language.function.html.select.time
...ext {html_select_date} Home  {html_table} ...
-
language.modifiers
... Note The default behavior was changed with Smarty 3. In Smarty 2.x, you had to ...
...rty} reserved variable Home  cat ...
-
advanced.features.streams
...t Template Inheritance Home  Objects ...
-
installing.smarty.basic
... 2. Installation Home  Extended Setup ...
-
tips.dates
...ates As a rule of thumb, always pass dates to Smarty as timestamps . This allows...
...tle 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
...Prefilters/Postfilters Home  Resources ...
-
api.get.tags
... getRegisteredObject() Home  getTemplateDir() ...
-
api.unregister.plugin
...on plugin ?php // we don't want template designers to have access to function pl...
...ext 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...
...p  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
... Built-in Functions Home  {assign} ...
-
variable.default.resource.type
...ext $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...
... Up  Next replace Home  string_format ...
-
language.variables.smarty
...ion of Smarty the template was compiled with. div id="footer" Powered by Smarty ...
...aded 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
...t 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...
...  Next {setfilter} Home  {while} ...
-
language.syntax.variables
...ith presentation to PHP by way of plugins or modifiers. Request variables such a...
... 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...
... Up  Next assign() Home  clearAllAssign() ...
-
language.function.html.select.date
...‚ Next {html_radios} Home  {html_select_time} ...
-
language.variable.scopes
...ter 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,...
... Next createData() Home  disableSecurity() ...
-
language.escaping
... Up  Next Math Home  Chapter 4. Variables ...
-
variable.trusted.dir
...‚ Next $template_dir Home  $use_include_path ...
-
variable.plugins.dir
...‚ 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...
... 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
...‚ Up  Next nl2br Home  replace ...
-
variable.config.dir
...ext $config_booleanize Home  $config_overwrite ...
-
variable.compile.id
... 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
...‚ Next regex_replace Home  spacify ...
-
variable.default.modifiers
...t $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...
...p  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...
...g 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...
...p  Next $debugging Home  $default_config_type ...
-
language.custom.functions
... Up  Next {while} Home  {cycle} ...
-
language.function.mailto
... Any extra information you want passed to the link, such as style sheet classes ...
... Next {html_table} Home  {math} ...
-
language.syntax.attributes
...ith presentation to PHP by way of plugins or modifiers. Prev  Up  Next F...
...Up  Next Functions Home  Embedding Vars in Double Quotes ...
-
language.modifier.to_charset
...p  Next strip_tags Home  truncate ...
-
inforesources
... 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
... 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
... 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
...  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
...For Template Designers Home  Variables ...
-
language.builtin.functions
...‚ Combining Modifiers Home  {append} ...
-
smarty.constants
...1. 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...
...tom Template Resources Home  Changing settings by template ...
-
language.function.html.table
...ext {html_select_time} Home  {mailto} ...
-
resources.string
... fill your disk space with wasted compiled strings. Example 16.5. Using te...
...er 16. Resources Home  Stream Template Resources ...
-
plugins
...xception of resources, backwards compatibility with the old way of registering h...
... Next Output Filters Home  Naming Conventions ...
-
advanced.features.template.settings
.... Advanced Features Home  Template Inheritance ...
-
bugs
...er 22. Resources Home  ...
-
language.function.foreach
...= $myValue} , the key is always available as $myValue@key within the foreach loo...
...‚ Up  Next {for} Home  {function} ...
-
plugins.prefilters.postfilters
...ext Compiler Functions Home  Output Filters ...
-
caching.custom
...s being handled for you in way that allows clearing the cache-group "a" and all ...
...Cacheability of Output Home  Chapter 16. Resources ...
-
tips
...e to header template Dates WAP/WML Componentized Templates Obfuscating E-mail Ad...
...20. Troubleshooting Home  Default Variable Handling ...
-
language.function.html.checkboxes
...ut / content (values are always escaped) Required attributes are values and outp...
... Up  Next {fetch} Home  {html_image} ...
-
chapter.debugging.console
... 9. Config Files Home  Part III. Smarty For Programmers ...
-
api.get.config.vars
... Next getConfigDir() Home  getPluginsDir() ...
-
language.function.extends
... Up  Next {debug} Home  {for} ...
-
api.unregister.filter
...egisterCacheResource() 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 ...
... compileAllTemplates() Home  createData() ...
-
troubleshooting
... 20.1. Smarty errors Warning: Smarty: [in index.tpl line 4]: syntax error:...
...t 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
...() — mutes expected warnings and notices deliberately generated by Smarty...
...‚ Next $use_sub_dirs Home  addConfigDir() ...
-
plugins.block.functions
...Up  Next Modifiers Home  Compiler Functions ...
-
variable.php.handling
...erge_compiled_includes Home  $plugins_dir ...
-
language.combining.modifiers
... 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 ...
... 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 ...
...ext Naming Conventions Home  Template Functions ...
-
language.math
...ith presentation to PHP by way of plugins or modifiers. Prev  Up  Next E...
... Vars in Double Quotes Home  Escaping Smarty Parsing ...
-
tips.passing.vars
...ault Variable Handling Home  Dates ...
-
variable.caching.type
... Up  Next $caching Home  $compile_check ...
-
variable.cache.modified.check
... Next $cache_locking Home  $caching ...
-
api.get.template.vars
... Next getTemplateDir() Home  isCached() ...
-
advanced.features.static.classes
... 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...
... $cache_modified_check Home  $caching_type ...
-
advanced.features.outputfilters
...  Next Postfilters Home  Chapter 18. Extending Smarty With Plug...
-
plugins.inserts
...r 19. SmartyBC - Backwards Compatibility Wrapper ...
...Up  Next Resources Home  Chapter 19. SmartyBC - Backwards Compa...
-
smarty.for.programmers
...() — mutes expected warnings and notices deliberately generated by Smarty...
.... Debugging Console Home  Chapter 11. Charset Encoding ...
-
language.modifier.upper
... Up  Next unescape Home  wordwrap ...
-
variable.right.delimiter
... Next $plugins_dir Home  $smarty_debug_id ...
-
plugins.resources
...ins are meant as a generic way of providing template sources or PHP script compo...
... Next Output Filters Home  Inserts ...
-
appendixes
...e to header template Dates WAP/WML Componentized Templates Obfuscating E-mail Ad...
... 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...
...‚ Up  Next upper Home  Chapter 6. Combining Modifiers ...
-
variable.debug_template
...xt $config_read_hidden Home  $debugging ...
-
language.function.block
...}The {$smarty.block.child} was inserted here{/block} /title /head /html child.tp...
... 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-...
...‚ Next string_format Home  strip_tags ...
-
variable.autoload.filters
...‚ 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 ...
... Next Cache Groups Home  Custom Cache Implementation ...
-
what.is.smarty
...t facilitates a manageable way to separate application logic and content from it...
... I. Getting Started Home  Chapter 2. Installation ...
-
bc
...r 19. SmartyBC - Backwards Compatibility Wrapper Chapter 19. SmartyB...
... 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 ...
...ltiple Caches Per Page Home  Controlling Cacheability of Output ...
-
api.assign
...‚ Next appendByRef() Home  assignByRef() ...
-
language.function.if
...p  Next {function} Home  {include} ...
-
variable.compile.dir
... Next $compile_check Home  $compile_id ...
-
api.add.plugins.dir
... 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
...p  Next Prefilters Home  Output Filters ...
-
api.set.cache.dir
...ext registerResource() Home  setCompileDir() ...
-
language.function.setfilter
...section},{sectionelse} Home  {strip} ...
-
language.modifier.unescape
... Up  Next truncate Home  upper ...
-
tips.obfuscating.email
...ny spam mailing lists? One way spammers collect email addresses is from web page...
...omponentized Templates Home  Chapter 22. Resources ...
-
plugins.naming.conventions
...ng Smarty With Plugins Home  Writing Plugins ...
-
language.modifier.escape
... 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
...eam Template Resources Home  Custom Template Resources ...
-
api.compile.all.config
...‚ Next clearConfig() Home  compileAllTemplates() ...
-
api.register.filter
...the template code after it was compiled to PHP. See template postfilters for mor...
...DefaultPluginHandler() Home  registerPlugin() ...
-
variable.debugging
...p  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
...‚ Next getCacheDir() Home  getConfigDir() ...
-
language.function.assign
... Up  Next {append} Home  {block} ...
-
caching.multiple.caches
...on some condition, and you want separate caches for each one. You can do this by...
...pter 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...
... Next {html_options} Home  {html_select_date} ...
-
resources.custom
... file system in some other way by registering under another resource name. Examp...
...nds Template Resources Home  Chapter 17. Advanced Features ...
-
config.files
...te colors. Normally if you wanted to change the color scheme of an application, ...
... 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
... Up  Next fetch() Home  getCompileDir() ...
-
api.unregister.resource
...ext unregisterObject() Home  testInstall() ...
-
language.function.debug
...‚ Next {config_load} Home  {extends} ...
-
installing.smarty.extended
...! A slightly more flexible way to setup Smarty is to extend the class and initia...
...ext 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...
... Up  Next spacify Home  strip ...
-
api.set.config.dir
... Next setCompileDir() Home  setPluginsDir() ...
-
api.append
... Next addTemplateDir() Home  appendByRef() ...
-
variable.force.compile
... Next $force_cache Home  $left_delimiter ...
-
variable.default.config.type
... Next $debugging_ctrl Home  $default_modifiers ...
-
tips.componentized.templates
...} . Prev  Up  Next WAP/WML Home  Obfuscating E-mail Addresses ...
... 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
...ing Template Resources Home  Extends Template Resources ...
-
api.load.filter
...p  Next isCached() Home  Smarty::muteExpectedErrors() ...
-
language.function.fetch
... Up  Next {eval} Home  {html_checkboxes} ...
-
api.unregister.cacheresource
... Next templateExists() Home  unregisterFilter() ...
-
language.function.cycle
...8. Custom Functions Home  {eval} ...
-
api.get.registered.object
... Next getPluginsDir() Home  getTags() ...
-
language.modifier.strip.tags
...‚ Up  Next strip Home  to_charset ...
-
language.modifier.indent
... Next from_charset Home  lower ...
-
language.modifier.from_charset
... Up  Next escape Home  indent ...
-
language.modifier.count.characters
...sign('articleTitle', 'Cold Wave Linked to Temperatures.'); ? Where template is: ...
...  Up  Next cat Home  count_paragraphs ...
-
api.add.config.dir
... Smarty Class Methods Home  addPluginsDir() ...
-
variable.default.config.handler.func
...$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...
... Up  Next Streams Home  Static Classes ...
-
api.compile.all.templates
...ext compileAllConfig() Home  configLoad() ...
-
api.clear.compiled.tpl
... 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
... Up  Next {strip} Home  Chapter 8. Custom Functions ...
-
variable.default.template.handler.func
...lt_config_handler_func Home  $direct_access_security ...
-
language.function.include
...t {if},{elseif},{else} Home  {include_php} ...
-
api.get.plugins.dir
... Next getConfigVars() Home  getRegisteredObject() ...
-
language.function.math
... Up  Next {mailto} Home  {textformat} ...
-
language.modifier.date.format
...assed to date_format are always (except for mysql timestamps, see below) interpr...
...  Next count_words Home  default ...
-
variable.left.delimiter
... 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...
...  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...
...m 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...
...‚ Next $caching_type Home  $compile_dir ...
-
language.function.ldelim
... Up  Next {insert} Home  {literal} ...
-
api.variables
...er 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...
...‚ Next {include_php} Home  {ldelim},{rdelim} ...
-
tips.wap
... WAP/WML WAP/WML wap, wml WAP/WML Prev  Chapter 21. Tips Tricks  N...
...‚ Up  Next Dates Home  Componentized Templates ...
-
language.function.call
... Up  Next {block} Home  {capture} ...
-
api.clear.config
...learCompiledTemplate() Home  compileAllConfig() ...
-
api.register.cacheresource
...::muteExpectedErrors() Home  registerClass() ...
-
language.function.function
...foreach},{foreachelse} Home  {if},{elseif},{else} ...
-
variable.use.include.path
... 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 *...
... Up  Next {call} Home  {config_load} ...
-
api.set.compile.dir
...‚ 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
...‚ Up  Next lower Home  regex_replace ...
-
installation
... 1. What is Smarty? Home  Basic Installation ...
-
api.create.data
... 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
..._template_handler_func Home  $error_reporting ...
-
variable.force.cache
... Next $escape_html Home  $force_compile ...
-
plugins.modifiers
...ext 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
...egisterCacheResource() Home  registerDefaultPluginHandler() ...
-
api.clear.cache
...‚ Next clearAssign() Home  clearCompiledTemplate() ...
-
api.clear.all.assign
...‚ Next assignByRef() Home  clearAllCache() ...
-
api.set.plugins.dir
... Next setConfigDir() Home  setTemplateDir() ...
-
api.mute.expected.errors
...() — mutes expected warnings and notices deliberately generated by Smarty...
... Next loadFilter() Home  registerCacheResource() ...
-
language.modifier.cat
... Variable Modifiers Home  count_characters ...
-
language.modifier.default
...  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...
... Next Static Classes Home  Postfilters ...
-
variable.compile.locking
...  Next $compile_id Home  $compiler_class ...
-
variable.cache.id
...p  Next $cache_dir Home  $cache_lifetime ...
-
language.function.html.options
... Next {html_image} Home  {html_radios} ...