-
advanced.features.outputfilters
...he template is invoked via display() or fetch() , its output can be sent through...
...late output will have // a simple protection against spambots ? See also registe...
-
plugins.modifiers
... Modifiers Modifiers modifiers Modifiers Prev Chapter 18. Extending Smarty ...
...cessing. Example 18.3. A simple modifier plugin This plugin basically aliases ...
-
language.function.section
...step through the array backwards. max integer No n/a Sets the maximum number of ...
...: Name Description nocache Disables caching of the {section} loop Required attri...
...on} loop can do, and has a simpler and easier syntax. It is usually preferred ov...
-
language.function.include
...de} tags are used for including other templates in the current template. Any var...
...g template Example 7.46. Simple {include} example html head title {$title} /ti...
-
index
...rrors() — mutes expected warnings and notices deliberately generated by Smarty...
...Copyright © 2001-2011 New Digital Group, Inc. 2011-11-29 Table of Contents Pref...
.... combining modifiers 7.1. Simple assignment 7.2. Assignment with math 7.3. Assi...
-
installing.smarty.extended
...! A slightly more flexible way to setup Smarty is to extend the class and initia...
...tead of repeatedly setting directory paths, assigning the same vars, etc., we ca...
... ? Now you see it is quite simple to bring up an instance of Smarty, just use Sm...
-
plugins.compiler.functions
...ile name and * the time it was compiled. * -------------------------------------...
...Prev Chapter 18. Extending Smarty With Plugins Next Compiler Functions C...
...HP tags. Example 18.6. A simple compiler function ?php /* * Smarty plugin * --...
-
what.is.smarty
...t facilitates a manageable way to separate application logic and content from it...
...the template designer play different roles, or in most cases are not the same pe...
...xpression syntax can be as simple or as complex an evaluation as you like. Allow...
-
language.function.block
...}The {$smarty.block.child} was inserted here{/block} /title /head /html child.tp...
...e will replace the correponding areas in the parent template(s). Optionally {blo...
...k} content Example 7.15. Simple {block} example parent.tpl html head title {bl...
-
plugins.outputfilters
...Prev Chapter 18. Extending Smarty With Plugins Next Output Filters Outpu...
...il addresses to %40 as * a simple protection against spambots * ----------------...
-
preface
...ilosophy The Smarty design was largely driven by these goals: clean separation o...
...stead use simple tags to indicate where application content is revealed. This ap...
...ming code, and instead use simple tags to indicate where application content is ...
-
language.function.extends
...plate inheritance for extending parent templates. For details see section of Tem...
...s extended Example 7.26. Simple {extends} example {extends file='parent.tpl'} ...
-
caching.custom
...s being handled for you in way that allows clearing the cache-group "a" and all ...
...rce_Custom is a simple API directing all read, write, clear calls to your implem...
..._CacheResource_Custom is a simple API directing all read, write, clear calls to ...
-
language.function.foreach
...= $myValue} , the key is always available as $myValue@key within the foreach loo...
...: Name Description nocache Disables caching of the {foreach} loop Example 7.30....
...s of data. {foreach} has a simpler and cleaner syntax than the {section} loop, a...
-
language.builtin.functions
...are compiled into corresponding inline PHP code for maximum performance. You can...
...' attribute Example 7.1. Simple assignment {$name='Bob'} The value of $name is...
-
language.function.for
...imple loops. The following different formarts are supported: {for $var=$start to...
...lse} tag is used to create simple loops. The following different formarts are su...
-
language.modifier.replace
... Chapter 5. Variable Modifiers Next replace A simple search and replace o...
...odifiers Next replace A simple search and replace on a variable. This is equi...
-
language.syntax.variables
...ith presentation to PHP by way of plugins or modifiers. Request variables such a...
...ead referenced with surrounding #hashmarks#, or via the $smarty.config variable....
...les {$foo} -- displaying a simple variable (non array/object) {$foo[4]} -- displ...