-
language.function.html.select.time
...s value. This is useful to make the select-boxes read “ Please select â...
...time attribute can have different formats. It can be a unique timestamp, a strin...
... It can display any or all of hour, minute, second and meridian. The time attrib...
...option /select See also $smarty.now , {html_select_date} and the date tips page ...
-
language.function.html.select.date
...s value. This is useful to make the select-boxes read “ Please select â...
... String printed between different fields month_value_format string No %m strftim...
... It can display any or all of year, month, and day. All parameters that are not ...
...ear, month and day from. start_year string No current year The first year in the...
-
variable.escape.html
...hange the setting you must make sure that the templates get recompiled. Prev Â...
...o selectively disable this feature by adding the nofilter flag: {$variable nofil...
...his feature by adding the nofilter flag: {$variable nofilter} . Modifiers and Fi...
...v  Chapter 13. Smarty Class Variables  Next $escape_html Setting $...
-
caching
...y the minute, it would not make sense to cache this page. Setting Up Caching The...
... up a call to display() or fetch() by saving its output to a file. If a cached v...
...er 15. Caching Table of Contents Setting Up Caching Multiple Caches Per Pa...
...15. Caching Prev  Part III. Smarty For Programmers  Next Chapt...
-
variable.default.modifiers
...y('escape:"htmlall"') . To make a variable exempt from default modifiers, add th...
...modifiers This is an array of modifiers to implicitly apply to every variable in...
...v  Chapter 13. Smarty Class Variables  Next $default_modifiers Thi...
-
language.function.extends
...tends file=$parent_file} , make sure you include $parent_file in the $cache_id ....
...not distinguish between different $parent_file s. Attributes: Attribute Name Typ...
...s. For details see section of Template Interitance . The {extends} tag must be o...
...he $cache_id . Otherwise Smarty cannot distinguish between different $parent_fil...
-
preface
...rty gives you the tools to make a clean separation of presentation from applicat...
.... Smarty also has security features that can further enforce restrictions on tem...
...se goals: clean separation of presentation from application code PHP backend, Sm...
...eface The Philosophy The Smarty design was largely driven by these goals: clean ...
-
caching.cacheable
...d in nocache mode you must make sure that all other variables used by that tag a...
... cached. However Smarty3 offers several options how to exclude sections of your ...
... Controlling Cacheability of Output Controlling Cacheability of Output controlli...
...age gets cached. However Smarty3 offers several options how to exclude sections ...
-
what.is.smarty
...refore, the programmer can make changes to the application logic without the nee...
... template designer play different roles, or in most cases are not the same perso...
...tes and uses a combination of HTML tags and template tags to format the presenta...
...Chapter 1. What is Smarty? Chapter 1. What is Smarty? chapter, 1, wh...
-
language.variables
...name}, glad to see you can make it. br / {* this will not work as $variables are...
...lim} Smarty has several different types of variables. The type of the variable d...
...r 4. Variables Table of Contents Variables assigned from PHP Associative a...
...4. Variables Prev  Part II. Smarty For Template Designers  Next...
-
advanced.features.postfilters
... The postfilter above will make the compiled Smarty template index.tpl look like...
...Chapter 17. Advanced Features  Next Postfilters Template postfilters a...
...ction to return the result of the processing. Example 17.12. Using a templ...
...toload_filters variable. Smarty will pass the compiled template code as the firs...
-
tips.obfuscating.email
...mbat this problem, you can make your email address show up in scrambled javascri...
...xample 21.8. Example of template the Obfuscating an email address div id="...
-
api.fetch
... 40 characters. This helps make the text easier to read in mail programs that do...
... fetch() fetch() fetch, fetch() Prev  Chapter 14. Smarty Class Methods...
...he template output instead of displaying it. Supply a valid template resource ty...
...v  Chapter 14. Smarty Class Methods  Next Name fetch() — re...
-
resources.extends
...tes from strings are used, make sure they are properly (url or base64) encoded. ...
...t. For details see section of Template Interitance . As of Smarty 3.1 the extend...
...late Interitance . As of Smarty 3.1 the extends: resource may use any available ...
-
language.function.debug
...ithin the template it does make sense to place the {debug} tag at the end of the...
...age. This works regardless of the debug settings in the php script. Since this g...
-
installing.smarty.extended
...hp/includes/guestbook/ and make a new file called setup.php . In our example env...
...aching = Smarty::CACHING_LIFETIME_CURRENT; $this- assign('app_name', 'Guest Book...
...tup This is a continuation of the basic installation , please read that first! A...
...re flexible way to setup Smarty is to extend the class and initialize your Smart...
-
language.function.insert
... must be included first to make it work. The path can be either absolute, or rel...
...ion {insert} {* example of fetching a banner *} {insert name="getBanner" lid=#ba...
...functions instead. Note As of Smarty 3.1 the {insert} tags are only available fr...
...tags are deprecated from Smarty, and should not be used. Put your PHP logic in P...
-
variable.direct.access.security
...hange the setting you must make sure that the templates get recompiled. Prev Â...
...v  Chapter 13. Smarty Class Variables  Next $direct_access_securit...
-
variable.merge.compiled.includes
...hange the setting you must make sure that the templates get recompiled. See also...
... templates using a many different sub-templates. Individual sub-templates can be...
...the compiled template code of subtemplates into the compiled code of the main te...
...v  Chapter 13. Smarty Class Variables  Next $merge_compiled_includ...