-
preface
...te inheritance, instead of including other templates we maintain our templates a...
...ices section of the Smarty website. How does it work? Under the hood, Smarty "co...
... The Philosophy The Smarty design was largely driven by these goals: clean separ...
...deployment for programmers and designers quick and easy to maintain syntax easy ...
-
what.is.smarty
...ation only. Things such as including other templates, alternating table row colo...
...rogrammer and the template designer play different roles, or in most cases are n...
...separate application logic and content from its presentation. This is best descr...
-
api.assign
...ices section of the Smarty website. Example 14.6. assign() ?php // passing nam...
...ts, and this leads to poor designs that are difficult to manage. See the Best Pr...
...e sure that all properties and methods accessed from the template are for presen...
-
variable.use.include.path
..._dir . Note You should not design your applications to rely on the include_path,...
...he File Template Resource handler and the plugin loader to resolve the directori...
-
language.modifier.date.format
...,99] %G - Week-based year, including the century [0000,9999] %h - same as %b %H ...
...ble by php's strtotime() . Designers can then use date_format to have complete c...
...format This formats a date and time into the given strftime() format. Dates can ...
-
language.function.include
...include} tags are used for including other templates in the current template. An...
... template have local scope and are not visible inside the including template aft...
-
advanced.features.objects
...ices section of the Smarty website. There are two ways to access them. One way i...
...ts, and this leads to poor designs that are difficult to manage. See the Best Pr...
...e sure that all properties and methods accessed from the template are for presen...
-
index
...Copyright © 2001-2011 New Digital Group, Inc. 2011-11-29 Table of Contents Pref...
...up II. Smarty For Template Designers 3. Basic Syntax Comments Variables Function...
...urce_type $default_config_handler_func $default_template_handler_func $direct_ac...
-
tips.componentized.templates
... any application by merely including the template, and not worry about fetching ...
...ct, assign() the variables and display() the template. So lets say for example w...
-
plugins.compiler.functions
...into the compiled template including the surrounding PHP tags. Example 18.6. A...
...s both a compiler function and a custom function registered under the same name,...
-
api.register.object
...ices section of the Smarty website. See the objects section for more information...
...ts, and this leads to poor designs that are difficult to manage. See the Best Pr...
...e sure that all properties and methods accessed from the template are for presen...
-
language.function.assign
...mplate will be seen in the including template. {include file="sub_template.tpl"}...
...tation that may be better handled in PHP. Use at your own discretion. Note See a...
-
resources.extends
...ilable template resource , including string: and eval: . When templates from str...
...source , including string: and eval: . When templates from strings are used, mak...
-
language.modifiers
... to any type of variables, including arrays and objects. Note The default behavi...
... II. Smarty For Template Designers Next Chapter 5. Variable Modifiers Tab...
...lue followed by a | (pipe) and the modifier name. A modifier may accept addition...
-
caching.cacheable
...ts cached. However Smarty3 offers several options how to exclude sections of you...
...ing by using the {nocache} and {/nocache} tags. Example 15.10. Preventing a te...
-
advanced.features.static.classes
...ices section of the Smarty website. Example 17.10. static class access syntax ...
...ectly to the presentation, and also complicates template syntax. It is recommend...
-
bugs
...on of Smarty, or check the website. Prev Up Chapter 22. Resources Home...
-
language.builtin.functions
...mplate will be seen in the including template. {include file="sub_template.tpl"}...
... II. Smarty For Template Designers Next Chapter 7. Built-in Functions Tab...
...ctions with the same name; and you should not need to modify the built-in functi...
-
variable.template.dir
...upply a resource type when including files, they will be found here. By default ...
...l traverse the directories and stop on the first matching template found. Techni...
-
caching
... generated, the cache is immediately regenerated. This is a computational overhe...
...ing the front page of your website that does not change its content very often, ...
...reful what you are caching and for how long. For instance, if you are displaying...
-
language.function.php
...within {php} tags {php} // including a php script directly from the template. in...
...re deprecated from Smarty, and should not be used. Put your PHP logic in PHP scr...
-
charset
...nless your PHP environment offers this package, Smarty will not be able to offer...
... data, ISO-8859-1 (Latin1) and UTF-8 being the most popular. Unless specified ot...