-
tips.componentized.templates
... Componentized Templates Componentized Templates componentized, templates Compon...
-
api.compile.all.templates
... compileAllTemplates() compileAllTemplates() compilealltemplates, compileAllTemp...
-
language.modifiers
...een php scripts and smarty templates. All php-functions can be used as modifiers...
-
installing.smarty.basic
...which are by default named templates/ , templates_c/ , configs/ and cache/ Each ...
-
variable.cache.lifetime
...f you want to give certain templates their own cache lifetime, you could do this...
-
language.function.php
...{insert} and componentized templates . Prev  Up  Next {nocache} Home...
-
language.variables.smarty
...cation code structure with templates. A good practice is to assign specific need...
-
language.syntax.functions
...ave the same syntax within templates. Built-in functions are the inner workings ...
-
language.function.strip
...unreadable or unmanageable templates. Anything within {strip}{/strip} tags are s...
-
api.assign.by.ref
... to assign() values to the templates by reference. Technical Note With the intro...
-
language.variable.scopes
...parent objects. By default templates which are rendered by $smarty- display(...)...
-
variable.escape.html
...ou must make sure that the templates get recompiled. Prev  Up  Next $err...
-
api.create.template
...e, such as having separate templates compiled for different languages. parent is...
-
language.escaping
...llowing applies. In Smarty templates, the { and } braces will be ignored so long...
-
variable.trusted.dir
...executed directly from the templates with {include_php} . Prev  Up  Next...
-
variable.config.read.hidden
...fig files can be read from templates. Typically you would leave this FALSE , tha...
-
api.append.by.ref
... to append() values to the templates by reference. Technical Note With the intro...
-
variable.use.sub.dirs
...ctories under the compiled templates and cache directories if $use_sub_dirs is s...
-
variable.config.dir
...e config files used in the templates. Default is ./configs , meaning that Smarty...
-
variable.compile.id
...arty can tell the compiled templates apart by their $compile_id . If you have fo...
-
caching
...p tremendously, especially templates with longer computation times. Since the ou...
-
advanced.features.template.inheritance
...ct Oriented Programming to templates, allowing you to define one (or more) base ...
-
variable.compiler.class
...ty will use to compile the templates. The default is 'Smarty_Compiler'. For adva...
-
api.set.template.dir
... set the directories where templates are stored Description Smarty setTempla...
-
language.custom.functions
...ns that you can use in the templates. {counter} {counter} is used to print out a...
-
language.function.config.load
...ables are available to all templates. Example 7.24. {config_load} The exam...
-
language.function.eval
...es are treated the same as templates. They follow the same escapement and securi...
-
variable.template.dir
...here. By default this is ./templates , meaning that Smarty will look for the tem...
-
language.basic.syntax
...king internal notes in the templates which no one will see ;-) Example 3.1.Â...
-
advanced.features
...rusted parties editing the templates eg via ftp, and you want to reduce the risk...
-
resources.string
...esources Smarty can render templates from a string by using the string: or eval:...
-
plugins
...ources, etc invoked in the templates scripts will be loaded. Moreover, each plug...
-
advanced.features.template.settings
...ect will be global for all templates. However the Smarty class variables and fun...
-
tips
...ates WAP/WML Componentized Templates Obfuscating E-mail Addresses Blank Variable...
-
chapter.debugging.console
...ms you of all the included templates, assigned variables and config file variabl...
-
language.function.extends
...ds} tags are used in child templates in template inheritance for extending paren...
-
troubleshooting
...e error in /path/to/smarty/templates_c/index.tpl.php on line 75 When you encount...
-
api.functions
... list of directories where templates are stored append() — append an elem...
-
variable.php.handling
...e PHP code embedded in the templates. There are four possible settings, the defa...
-
preface
...s. The idea is to keep the templates focused squarely on presentation, void of a...
-
tips.default.var.handling
...frequently throughout your templates, applying the default modifier every time i...
-
tips.passing.vars
... When the majority of your templates use the same headers and footers, it is com...
-
advanced.features.static.classes
...ter plugins which insulate templates from PHP classes/objects. Use at your own d...
-
variable.caching
...to cache the output of the templates to the $cache_dir . By default this is set ...
-
advanced.features.outputfilters
...ilters operate on compiled templates before they are saved to the disk, whereas ...
-
smarty.for.programmers
...Class Variables $allow_php_templates $auto_literal $autoload_filters $cache_dir ...
-
plugins.resources
...late.tpl . If a Resource's templates should not be run through the Smarty compil...
-
appendixes
...ates WAP/WML Componentized Templates Obfuscating E-mail Addresses 22. Resources ...
-
language.function.block
... areas of child and parent templates can be merged into each other. You can appe...
-
api.get.template.dir
...return the directory where templates are stored Description string|array get...
-
what.is.smarty
...emplate designer edits the templates and uses a combination of HTML tags and tem...
-
caching.groups
...ou will need to group your templates under a single cache group heirarchy to be ...
-
api.assign
...n variables/objects to the templates Description void assign ( mixed var...
-
variable.compile.dir
...e directory where compiled templates are located. By default this is ./templates...
-
advanced.features.postfilters
...re PHP functions that your templates are ran through after they are compiled . P...
-
api.set.cache.dir
...$smarty- setTemplateDir('./templates') - setCompileDir('./templates_c') - setCac...
-
api.fetch
...e, such as having separate templates compiled for different languages. You can a...
-
resources.extends
...g string: and eval: . When templates from strings are used, make sure they are p...
-
api.register.filter
...er filters to operate on a templates. It uses the following parameters: type def...
-
variable.debugging
...nforms you of the included templates, variables assigned from php and config fil...
-
api.display
...e, such as having separate templates compiled for different languages. You can a...
-
api.get.compile.dir
...e directory where compiled templates are stored Description string getCompil...
-
language.function.assign
...he variable is seen by all templates using the same root tree. {assign var=foo v...
-
resources.custom
...Resources You can retrieve templates using whatever possible source you can acce...
-
config.files
...nfig files are loaded into templates with the built-in template function {config...
-
api.register.object
...r an object for use in the templates Description void registerObject ( strin...
-
api.get.cache.dir
...t directory where compiled templates are stored $cacheDir = $smarty- getCacheDir...
-
language.function.debug
...ssigned variables; not the templates that are in use. However, you can see all t...
-
installing.smarty.extended
.../www.example.com/guestbook/templates/'); $this- setCompileDir('/web/www.example....
-
api.set.config.dir
...$smarty- setTemplateDir('./templates') - setConfigDir('./config') - setCompileDi...
-
variable.force.compile
...rces Smarty to (re)compile templates on every invocation. This setting overrides...
-
api.register.resource
...up a function for fetching templates. Technical Note A resource name must be at ...
-
index
...Class Variables $allow_php_templates $auto_literal $autoload_filters $cache_dir ...
-
advanced.features.objects
...to PHP objects through the templates. Note When you assign/register objects to t...
-
api.clear.compiled.tpl
...p_time, then only compiled templates older than exp_time seconds are cleared, by...
-
language.function.include
...e used for including other templates in the current template. Any variables avai...
-
language.function.include.php
...esources and componentized templates Prev  Up  Next {include} Home ...
-
api.enable.security
...nables securty checking on templates. It uses the following parameters: security...
-
api.disable.security
...sables securty checking on templates. See also enableSecurity() , and Security ....
-
api.add.template.dir
... list of directories where templates are stored Description Smarty addTempla...
-
resources
...ts File Template Resources Templates from $template_dir Templates from a specifi...
-
variable.compile.check
...ut into production (ie the templates won't be changing), the compile check step ...
-
api.variables
...ble of Contents $allow_php_templates $auto_literal $autoload_filters $cache_dir ...
-
tips.wap
... Â Next WAP/WML WAP/WML templates require a php Content-Type header to be pas...
-
api.set.compile.dir
...e directory where compiled templates are stored Description Smarty setCompil...
-
api.create.data
...se objects can be chained. Templates can access variables assigned to any of the...
-
variable.direct.access.security
...ou must make sure that the templates get recompiled. Prev  Up  Next $def...
-
variable.force.cache
...forces Smarty to (re)cache templates on every invocation. It does not override t...
-
variable.merge.compiled.includes
...mpiled template code of subtemplates into the compiled code of the main template...
-
api.register.class
...ter a class for use in the templates Description void registerClass ( string...
-
api.clear.cache
...d parameter. You can group templates together so they can be removed as a group,...
-
api.set.plugins.dir
...$smarty- setTemplateDir('./templates') - setPluginsDir('./plugins') - setCompile...
-
advanced.features.prefilters
...re PHP functions that your templates are ran through before they are compiled . ...