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 "script"

  • installing.smarty.basic
    ...ance of Smarty in your PHP scripts: ?php // NOTE: Smarty has a capital 'S' requi...
  • language.function.php
    ... Put your PHP logic in PHP scripts or plugin functions instead. Note As of Smart...
  • variable.cache.dir
    ...ctory as the executing php script. This directory must be writeable by the web s...
  • language.variables.smarty
    ...e For historical reasons {$SCRIPT_NAME} is short-hand for {$smarty.server.SCRIPT...
  • api.template.exists
    ...pecified template exists Description bool  templateExists ( string  templa...
  • language.escaping
    ...c example is embedding Javascript or CSS code in a template. The problem arises ...
  • variable.config.dir
    ...ctory as the executing php script. Technical Note It is not recommended to put t...
  • advanced.features.template.inheritance
    ...nheritance tree in the PHP script when you are calling fetch() or display() with...
  • variable.debugging.ctrl
    ...for that invocation of the script. If $debugging is TRUE , this value is ignored...
  • language.function.mailto
    ...a site. Technical Note Javascript is probably the most thorough form of encoding...
  • api.register.default.plugin.handler
    ...called on undefined tags Description void  registerDefaultPluginHandler ( mix...
  • variable.template.dir
    ...ctory as the executing php script. $template_dir can also be an array of directo...
  • language.basic.syntax
    ...var is assigned in foo.php script *} !-- Displays main content block -- {include...
  • smarty.constants
    ...his is not defined in your script, then Smarty will attempt to determine the app...
  • troubleshooting
    ...espond to the compiled PHP script, NOT the template itself. Usually you can look...
  • preface
    ...ach is fastest from a pure script-execution point of view, many would argue that...
  • plugins.resources
    ...ng template sources or PHP script components to Smarty. Some examples of resourc...
  • variable.compile.dir
    ...ctory as the executing php script. This directory must be writeable by the web s...
  • language.function.setfilter
    ... 7.77. {setfilter} tags script {setfilter filter1} {$foo} {* filter1 runs on ...
  • api.fetch
    ...urns the template output Description string  fetch ( string  template , Â...
  • resources.extends
    ...e inheritance from the PHP script. For details see section of Template Interitan...
  • variable.debugging
    ...ole . The console is a javascript popup window that informs you of the included ...
  • language.function.assign
    ...me Type Required Default Description var string Yes n/a The name of the variable...
  • caching.multiple.caches
    ...for article_id, or write a script that sends random article_id's at a rapid pace...
  • language.function.literal
    ... typically used around Javascript or stylesheet blocks where {curly braces} woul...
  • resources.custom
    ...// using resource from php script $smarty- display("mysql:index.tpl"); ? And fro...
  • language.function.debug
    ... debug settings in the php script. Since this gets executed at runtime, this is ...
  • index
    ... the include path in a php script with ini_set() 2.6. What the file structure lo...
  • language.function.fetch
    ...lative to the executed php script. Note If security is enabled and you are fetch...
  • language.function.math
    ...e math calculations in the script and assign() the results to the template. Defi...
  • language.function.include.php
    ...me Type Required Default Description file string Yes n/a The name of the php fil...
  • language.function.section
    ...me Type Required Default Description name string Yes n/a The name of the section...
  • language.function.ldelim
    ...cape blocks of text eg Javascript or CSS. See also the complimentary {$smarty.ld...
  • language.function.insert
    ... Put your PHP logic in PHP scripts or plugin functions instead. Note As of Smart...
  • api.register.plugin
    ...mically register plugins Description void  registerPlugin ( string  type ,...
  • language.function.html.options
    ...me Type Required Default Description values array Yes, unless using options attr...