-
installing.smarty.basic
...is assumend to be in 'includes/' dir under current script define('SMARTY_DIR',st...
... get changed when you upgrade to a new version of Smarty. In the examples below ...
.../ for *nix machines and c:\webroot\libs\Smarty-v.e.r\ for the windows environmen...
...get('include_path').PATH_SEPARATOR.'/usr/local/lib/Smarty-v.e.r/libs/'); // wind...
-
variable.cache.locking
...s means resource intensive pages can be generated only once, even if they've bee...
...che locking is disabled by default. To enable it set $cache_locking to TRUE . Se...
-
language.syntax.functions
... and its attributes within delimiters like so: {funcname attr1="val1" attr2="val...
..."banner_ads.tpl" title="My Site"} {if $logged_in} Welcome, span style="color:{#f...
-
api.create.template
... returns a template object Description Smarty_Internal_Template createTempla...
...the same template, such as pages for displaying different products. See also the...
... returns a template object Description Smarty_Internal_Template createTempla...
...    object parent ); Smarty_Internal_Template createTemplate...
-
language.function.mailto
...r links and optionally encodes them. Encoding emails makes it more difficult for...
... {mailto} {mailto} , ldelim, mailto, rdelim, {mailto} Prev  Chapter 8.Â...
...t email addresses off of a site. Technical Note Javascript is probably the most ...
...akes it more difficult for web spiders to lift email addresses off of a site. Te...
...ddresses to carbon copy, separate entries by a comma. bcc string No n/a Email ad...
-
language.function.config.load
...Name Type Required Default Description file string Yes n/a The name of the confi...
...fig_load} {config_load} , ldelim, config_load, rdelim, {config_load} Prev  C...
...hich must be one of local, parent or global. local means variables are loaded in...
-
language.basic.syntax
...II. Smarty For Template Designers  Next Chapter 3. Basic Syntax Tab...
...II. Smarty For Template Designers  Next Chapter 3. Basic Syntax Tab...
... Basic Syntax Prev  Part II. Smarty For Template Designers  Nex...
-
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
...atever reason, this is the desired behaviour of your custom error handler, pleas...
...ors Warning: Smarty: [in index.tpl line 4]: syntax error: unknown tag - '%blah' ...
... unable to read resource: "site.conf" in... The $template_dir is incorrect, does...
...dir is not writable by the web server. See the bottom of the installing smarty p...
...Troubleshooting Prev  Part IV. Appendixes  Next Chapter 20.Â...
-
preface
... The Philosophy The Smarty design was largely driven by these goals: clean separ...
...in our templates as single pages. We can then manipulate blocks of content withi...
... The Philosophy The Smarty design was largely driven by these goals: clean separ...
...s section of the Smarty website. How does it work? Under the hood, Smarty "compi...
...restrictions on templates. Web designers and PHP A common question: "Web designe...
...en by these goals: clean separation of presentation from application code PHP ba...
-
tips.obfuscating.email
...mail addresses is from web pages. To help combat this problem, you can make your...
...l Addresses Do you ever wonder how your email address gets on so many spam maili...
...ct email addresses is from web pages. To help combat this problem, you can make ...
-
language.function.fetch
...Name Type Required Default Description file string Yes n/a The file, http or ftp...
... {fetch} {fetch} , ldelim, fetch, rdelim, {fetch} Prev  Chapter 8. Cus...
...ins with http:// , the web site page will be fetched and displayed. Note This wi...
... begins with http:// , the web site page will be fetched and displayed. Note Thi...
-
language.function.insert
...Name Type Required Default Description name string Yes n/a The name of the inser...
...reated, even within cached pages. This works good for things like banners, polls...
... {insert} {insert} , ldelim, insert, rdelim, {insert} Prev  Chapter 7.Â...
... #banner_location_id# and #site_id# values (gathered from a config file ), and n...
...er †and passing the parameters #banner_location_id# and #site_id#. Smarty...
-
language.modifier.default
...tion Type Required Default Description 1 string No empty This is the default val...
...he blank variable handling pages. Prev  Up  Next date_format Home Â...
... default default default default Prev  Chapter 5. Variable Modifiers ...
...lt takes the one argument. Parameter Position Type Required Default Description ...