-
installing.smarty.basic
... get changed when you upgrade to a new version of Smarty. In the examples below ...
...get('include_path').PATH_SEPARATOR.'/usr/local/lib/Smarty-v.e.r/libs/'); // wind...
-
api.get.tags
...turn tags used by template Description string getTags ( object template ...
...ate. It uses the following parameters: template is the template object. Note Thi...
-
language.function.append
... {append} {append} , ldelim, append, rdelim, {append} Prev  Chapter 7.Â...
...of the assigned variable: 'parent','root' or 'global' Option Flags: Name Descrip...
-
variable.default.resource.type
... $default_resource_type $default_resource_type , default_resource_type $default_...
-
language.variables.smarty
...arty} reserved variable , ldelim, smarty, rdelim, reserved, variable {$smarty} r...
...teritance . {$smarty.block.parent} Returns block text from parent template. See ...
-
api.template.exists
... specified template exists Description bool templateExists ( string temp...
-
smarty.for.designers
...II. Smarty For Template Designers Part II. Smarty For Template Designer...
... Part II. Smarty For Template Designers Part II. Smarty For Template...
-
language.syntax.variables
...ain numbers, letters and underscores, much like a PHP variable . You can referen...
...r($baz,2,$bar)} -- passing parameters {"foo"} -- static values are allowed {* di...
-
api.assign.by.ref
...assign values by reference Description void assignByRef ( string varname...
-
language.variable.scopes
...hain of parent objects. By default templates which are rendered by $smarty- disp...
...he objects in its chain of parent objects. By default templates which are render...
-
api.create.template
... returns a template object Description Smarty_Internal_Template createTempla...
...    object parent ); Smarty_Internal_Template createTemplate...
-
api.append.by.ref
...append values by reference Description void appendByRef ( string varname...
.... Technical Note The merge parameter respects array keys, so if you merge two nu...
-
caching
...ile could conceivably be made up of several template files, config files, etc. S...
... 15. Caching Prev  Part III. Smarty For Programmers  Next Chap...
-
api.is.cached
...id cache for this template Description bool isCached ( string template ,...
...e_id as an optional second parameter in case you want multiple caches for the gi...
-
language.builtin.functions
...II. Smarty For Template Designers  Next Chapter 7. Built-in Functio...
...ilt-in Functions Prev  Part II. Smarty For Template Designers  Nex...
-
language.function.html.table
...tml_table} {html_table} , ldelim, html_table, rdelim, {html_table} Prev  Cha...
... in the table or a comma-separated list of column heading names or an array of c...
-
advanced.features.template.settings
...that template and its included subtemplates. Example 17.4. changing Smarty...
-
language.function.foreach
...{foreach},{foreachelse} , ldelim, foreach, rdelim, ldelim, foreachelse, rdelim, ...
...Y = true)); $res = $db- prepare("select * from users"); $res- execute(); $res- s...
-
caching.custom
...n alternative to using the default file-based caching mechanism, you can specify...
...his- fetch = $this- db- prepare('SELECT modified, content FROM output_cache WHER...
-
troubleshooting
...ors Warning: Smarty: [in index.tpl line 4]: syntax error: unknown tag - '%blah' ...
...Troubleshooting Prev  Part IV. Appendixes  Next Chapter 20.Â...
-
advanced.features.outputfilters
...be either registered or loaded from the plugins directory by using the loadFilte...
-
plugins.resources
... implement the function renderUncompiled(Smarty_Internal_Template $_template) . ...
...tance protected $db; // prepared fetch() statement protected $fetch; // prepared...
-
language.modifier.strip
...ne."); $smarty- display('index.tpl'); ? Where template is: {$articleTitle} {$art...
-
caching.cacheable
...everal options how to exclude sections of your output from caching. General Note...
...egistering them. The third parameter to registerPlugin() is called $cacheable an...
-
caching.groups
...) it is treated as an appended cache group '/a/b/c/foo/' . If you specify a temp...
... This is accomplished by separating each sub-group with a vertical bar | in the ...
-
language.variables
...II. Smarty For Template Designers  Next Chapter 4. Variables Table ...
...4. Variables Prev  Part II. Smarty For Template Designers  Nex...
-
advanced.features.postfilters
...be either registered or loaded from the plugins directory by using the loadFilte...
-
api.fetch
...eturns the template output Description string fetch ( string template , ...
...ath. As an optional second parameter, you can pass a $cache id , see the caching...
-
api.display
...” displays the template Description void display ( string template , ...
...ath. As an optional second parameter, you can pass a $cache_id , see the caching...
-
language.function.assign
... {assign} {assign} , ldelim, assign, rdelim, {assign} Prev  Chapter 7.Â...
...of the assigned variable: 'parent','root' or 'global' Option Flags: Name Descrip...
-
caching.multiple.caches
... that a call to display('index.tpl') may have several different output contents ...
... condition, and you want separate caches for each one. You can do this by passin...
-
resources.custom
...s you are supposed to provide. Note Note that you cannot override the built-in f...
...tance protected $db; // prepared fetch() statement protected $fetch; // prepared...
-
plugins.compiler.functions
...useful for injecting PHP code or time-sensitive static content into the template...
...ed smarty_compiler_name ( $params , Â Â $smarty ) ; Â array $params ; o...
-
installing.smarty.extended
... Extended Setup Extended Setup extended, setup Extended Setup Prev  Chapter...
...et with each new instance. parent::__construct(); $this- setTemplateDir('/web/ww...
-
tips.componentized.templates
...gn'], $ticker_info); } ? index.tpl {load_ticker symbol='SMARTY' assign='ticker'}...
...arty_function_load_ticker($params, $smarty) { // call the function $ticker_info ...
-
api.register.resource
...mically register resources Description void registerResource ( string na...
...ill be ignored and used as part of the file path, such as $smarty- display('c:/p...
-
index
...ts Basic Installation Extended Setup II. Smarty For Template Designers 3. Basic ...
...uotes Math Escaping Smarty Parsing 4. Variables Variables assigned from PHP Asso...
-
advanced.features.objects
...ts, and this leads to poor designs that are difficult to manage. See the Best Pr...
... as the third registration parameter. By default, parameters passed to objects t...
-
api.clear.compiled.tpl
...pecified template resource Description void clearCompiledTemplate ( stringÂ...
-
language.function.section
...{section},{sectionelse} , ldelim, section, rdelim, ldelim, sectionelse, rdelim, ...
...e. .show show is used as a parameter to section and is a boolean value. If FALSE...
-
resources
...template, or when you include a template from within another template, you suppl...
...16. Resources Prev  Part III. Smarty For Programmers  Next Chap...
-
api.create.data
...” creates a data object Description string createData ( object parent...
... createData ( object parent ); string createData (); This creates a da...
-
api.clear.cache
...he for a specific template Description void clearCache ( string template...
...the cache_id as the second parameter. You can also pass a $compile_id as a third...
-
advanced.features.prefilters
...be either registered or loaded from the plugins directory by using loadFilter() ...