Smarty Icon

You may use the Smarty logo according to the trademark notice.

Smarty Template Engine Smarty Template Engine

For sponsorship, advertising, news or other inquiries, contact us at:

Sites Using Smarty

Advertisement

Search Results for "file"

  • config.files
    ... Chapter 9. Config Files Chapter 9. Config Files chapter, 9, config,...
  • installing.smarty.basic
    ...Install the Smarty library files which are in the /libs/ sub directory of the di...
  • plugins.outputfilters
    ...------------------------ * File: outputfilter.protect_email.php * Type: outputfi...
  • variable.default.resource.type
    ...itly. The default value is file , meaning that $smarty- display('index.tpl') and...
  • api.template.exists
    ...ath to the template on the filesystem or a resource string specifying the templa...
  • language.syntax.functions
    ...nction syntax {config_load file="colors.conf"} {include file="header.tpl"} {inse...
  • language.syntax.variables
    ...erties and methods. Config file variables are an exception to the $dollar syntax...
  • caching
    ... by saving its output to a file. If a cached version of the call is available, t...
  • language.syntax.quotes
    ...ame with value *} {include file="subdir/$tpl_name.tpl"} {* does NOT replace $tpl...
  • advanced.features.template.inheritance
    ..., meaning you can extend a file that extends another one that extends another on...
  • language.syntax.attributes
    ... attribute syntax {include file="header.tpl"} {include file="header.tpl" nocache...
  • language.function.config.load
    ...bles# from a configuration file into the template. Attributes: Attribute Name Ty...
  • language.function.eval
    ...tags/variables into config file variables. If you supply the assign attribute, t...
  • api.is.cached
    ...ot try to reload the cache file. This prevents a race condition that may occur w...
  • language.basic.syntax
    ...***********} {* The header file with the main logo and stuff *} {include file='h...
  • language.builtin.functions
    ...cluding template. {include file="sub_template.tpl"} ... {* display variable assi...
  • advanced.features
    ...ams. The default is array('file'). $allowed_modifiers is an array of (registered...
  • resources.string
    ...uch the same as a template file. The template source is compiled from a string a...
  • bugs
    ...23. BUGS Check the BUGS file that comes with the latest distribution of Smart...
  • plugins.prefilters.postfilters
    ...d template is saved to the filesystem. The first parameter to the postfilter fun...
  • caching.custom
    ...ative to using the default file-based caching mechanism, you can specify a custo...
  • chapter.debugging.console
    ...igned variables and config file variables for the current invocation of the temp...
  • language.function.extends
    ...mplate resources to extend files outside of the $template_dir directory. Note Wh...
  • api.config.load
    ...ad() — loads config file data and assigns it to the template Description ...
  • troubleshooting
    ...e to open the compiled PHP file and go to the line number to figure out where th...
  • language.function.html.image
    ... calculated from the image file if they are not supplied. Attribute Name Type Re...
  • api.functions
    ...f directories where config files are stored addPluginsDir() — add a direc...
  • plugins.block.functions
    ...------------------------ * File: block.translate.php * Type: block * Name: trans...
  • tips.passing.vars
    ...sed as the title. {include file='header.tpl' title='Main Page'} {* template body...
  • variable.caching.type
    ...ler to use. It defaults to file , enabling the internal filesystem based cache h...
  • variable.cache.modified.check
    ... the client. If the cached file timestamp has not changed since the last visit, ...
  • plugins.inserts
    ...------------------------ * File: insert.time.php * Type: time * Name: time * Pur...
  • smarty.for.programmers
    ...f directories where config files are stored addPluginsDir() — add a direc...
  • plugins.resources
    ... Resources may be put in a file resource.foobarxyz.php within your $plugins_dir ...
  • variable.debug_template
    ...s the name of the template file used for the debugging console. By default, it i...
  • language.function.block
    ...d /html child.tpl {extends file="parent.tpl"} {block name="title"} Page Title {/...
  • caching.groups
    ...would be like removing the files '/a/b/c/*' . clearCache(null,'a|b') would be li...
  • plugins.naming.conventions
    ... Naming Conventions Plugin files and functions must follow a very specific namin...
  • resources.extends
    ... its "don't save a compile file" property is superseeded by the extends: resourc...
  • api.compile.all.config
    ... compiles all known config files Description string  compileAllConfig ( strin...
  • variable.debugging
    ...signed from php and config file variables for the current script. It does not sh...
  • api.display
    ...plate resources to display files outside of the $template_dir directory. ?php //...
  • language.function.assign
    ...cluding template. {include file="sub_template.tpl"} ... {* display variable assi...
  • caching.multiple.caches
    ...ou can have multiple cache files for a single call to display() or fetch() . Let...
  • resources.custom
    ...h PHP: databases, sockets, files, etc. You do this by writing resource plugin fu...
  • language.config.variables
    ...riables loaded from config files Variables loaded from config files variables, l...
  • plugins.compiler.functions
    ...------------------------ * File: compiler.tplheader.php * Type: compiler * Name:...
  • installing.smarty.extended
    .../guestbook/ and make a new file called setup.php . In our example environment, /...
  • variable.force.compile
    ...hing is enabled, the cache file(s) will be regenerated every time. Prev   Up ...
  • variable.default.config.type
    ...rce type to use for config files. The default value is file , meaning that $smar...
  • tips.componentized.templates
    ...ion.load_ticker.php - drop file in $plugins directory ?php // setup our function...
  • api.register.resource
    ...ed and used as part of the file path, such as $smarty- display('c:/path/to/index...
  • resources.streams
    ...ithin a template. {include file="foo:bar.tpl"} Prev   Up   Next String Tem...
  • index
    ...riables loaded from config files {$smarty} reserved variable Request variables {...
  • language.function.fetch
    ...fetch} is used to retrieve files from the local file system, http, or ftp and di...
  • variable.default.config.handler.func
    ...on is called when a config file cannot be obtained from its resource. Note The d...
  • api.compile.all.templates
    ...function compiles template files found in the $template_dir folder. It uses the ...
  • plugins.functions
    ...------------------------ * File: function.eightball.php * Type: function * Name:...
  • variable.default.template.handler.func
    ...currently only invoked for file resources. It is not triggered when the resource...
  • language.function.include
    ...include} tag must have the file attribute which contains the template resource p...
  • language.function.include.php
    ...quired Default Description file string Yes n/a The name of the php file to inclu...
  • variable.config.overwrite
    ...iables read in from config files will overwrite each other. Otherwise, the varia...
  • resources
    ...esources Table of Contents File Template Resources Templates from $template_dir ...
  • variable.compile.check
    ...is to FALSE and a template file is changed, you will *not* see the change since ...
  • api.variables
    ...y default the PHP template file resource is disabled. Setting $allow_php_templat...
  • language.function.insert
    ...es (gathered from a config file ), and needs to call a function to get the banne...
  • variable.use.include.path
    ...he include_path within the File Template Resource handler and the plugin loader ...
  • language.function.capture
    ... {* short-hand *} {include file="get_banner.tpl"} {/capture} {if $smarty.capture...
  • plugins.modifiers
    ...------------------------ * File: modifier.capitalize.php * Type: modifier * Name...
  • api.clear.cache
    ...m age in seconds the cache file must be before it will get cleared. Example 1...