-
installing.smarty.basic
.../ for *nix machines and c:\webroot\libs\Smarty-v.e.r\ for the windows environmen...
...s\Smarty-v.e.r\ for the windows environment. Example 2.1. Required Smarty ...
-
api.get.tags
... Up  Next getRegisteredObject() Home  getTemplateDir() ...
-
language.function.append
-
variable.default.resource.type
-
language.variables.smarty
-
api.template.exists
... template. If the template does not exist then an error page is displayed instea...
-
smarty.for.designers
...tributes Embedding Vars in Double Quotes Math Escaping Smarty Parsing 4. Variabl...
-
language.syntax.variables
... variables start with the $dollar sign. They can contain numbers, letters and un...
-
api.assign.by.ref
-
language.variable.scopes
...late2'); // This display() does see $foo='smarty' from the $smarty object $smart...
-
api.create.template
-
api.append.by.ref
-
caching
...ing the front page of your website that does not change its content very often, ...
... can speed things up tremendously, especially templates with longer computation ...
-
api.is.cached
...is used if its set. If you do not want to pass a $cache_id but want to pass a $c...
-
language.builtin.functions
-
language.function.html.table
...ht-to-left) vdir string No down Direction of each column to be rendered. possibl...
-
advanced.features.template.settings
... functions . Modifications done to the Smarty object will be global for all temp...
-
language.function.foreach
...} Note This foreach syntax does not accept any named attributes. This syntax is ...
-
caching.custom
...ven though KeyValue-Stores don't allow this kind of hierarchy by nature. Custom ...
-
troubleshooting
...dir is not writable by the web server. See the bottom of the installing smarty p...
...template_dir is incorrect, doesn't exist or the file index.tpl is not in the tem...
-
preface
...restrictions on templates. Web designers and PHP A common question: "Web designe...
...d code into templates that doesn't belong there (you just handed them a swiss-ar...
... programmers and designers quick and easy to maintain syntax easy to understand,...
-
advanced.features.outputfilters
-
plugins.resources
...arty_Resource_Custom { // PDO instance protected $db; // prepared fetch() statem...
-
language.modifier.strip
-
caching.cacheable
...second(s)'; }else{ return 'done'; } } $smarty- registerPlugin('function','remain...
-
caching.groups
... Next Cache Groups You can do more elaborate grouping by setting up $cache_id gr...
-
language.variables
...d by preceding them with a dollar ( $ ) sign. Example 4.2. Assigned variab...
-
advanced.features.postfilters
-
api.fetch
...index.tpl', $cache_id); // do something with $output here echo $output; ? Exampl...
-
api.display
... setCaching(true); // only do db calls if cache doesn't exist if(!$smarty- isCac...
-
language.function.assign
-
caching.multiple.caches
...sing values from a client (web browser) into Smarty or any PHP application. Alth...
...ches for each one. You can do this by passing a $cache_id as the second paramete...
-
resources.custom
..., sockets, files, etc. You do this by writing resource plugin functions and regi...
-
plugins.compiler.functions
-
installing.smarty.extended
...); $this- setTemplateDir('/web/www.example.com/guestbook/templates/'); $this- se...
...he same vars, etc., we can do that in one place. Lets create a new directory /ph...
-
tips.componentized.templates
...the data up front? You can do this by writing a custom plugin for fetching the c...
-
api.register.resource
-
index
...directories writable 2.8. /web/www.example.com/guestbook/templates/index.tpl 2.9...
...e Monte Ohrt monte at ohrt dot com Uwe Tews uwe dot tews at googlemail dot com C...
...m Uwe Tews uwe dot tews at googlemail dot com Copyright © 2001-2011 New Digit...
-
advanced.features.objects
...ices section of the Smarty website. There are two ways to access them. One way i...
-
api.clear.compiled.tpl
-
language.function.section
...l'), array( 'home phone', 'web'), array( 'cell phone') ); $smarty- assign('conta...
...ote The {foreach} loop can do everything a {section} loop can do, and has a simp...
-
resources
...template_dir . This allows websites employing multiple sets of templates better ...
...ates from any directory Windows Filepaths String Template Resources Stream Templ...
-
api.create.data
-
api.clear.cache
-
advanced.features.prefilters