-
caching
...ur website that does not change its content very often, it might work well to ca...
... Chapter 15. Caching Chapter 15. Caching chapter, 15, caching Chapte...
...to display() or fetch() by saving its output to a file. If a cached version of t...
-
advanced.features.objects
...ns can be accessed (beginningwith '_'). If a method and property of the same nam...
...method and property of the same name exist, the method will be used. You can res...
-
installing.smarty.basic
...pplications and only get changed when you upgrade to a new version of Smarty. In...
...T edit. They are shared among all applications and only get changed when you upg...
...cript. If you get an error saying the Smarty.class.php file could not be found, ...
-
api.get.tags
...y template Description string getTags ( object template ); This function...
-
language.function.append
...{append} is used for creating or appending template variable arrays during the e...
-
variable.default.resource.type
...fault value is file , meaning that $smarty- display('index.tpl') and $smarty- di...
-
language.variables.smarty
...Example 4.8. Displaying request variables {* display value of page from UR...
...miter value literally, the same as {ldelim},{rdelim} . See also assigned variabl...
-
api.template.exists
...l templateExists ( string template ); It can accept either a path to the...
-
smarty.for.designers
...unctions Attributes Embedding Vars in Double Quotes Math Escaping Smarty Parsing...
-
language.syntax.variables
...d referenced with surrounding #hashmarks#, or via the $smarty.config variable. E...
...hin tags {$foo="this is message {counter}"} // tags within double quoted strings...
-
api.assign.by.ref
...void assignByRef ( string varname ,          ...
... assignByRef() is not necessary for most intents and purposes. assignByRef() is ...
-
language.variable.scopes
... variable scope. By assigning variables to individual data or template objects y...
-
api.create.template
...es compiled for different languages. parent is an optional parameter. It is an u...
...e createTemplate ( string template ,         Â...
...e different content of the same template, such as pages for displaying different...
-
api.append.by.ref
...void appendByRef ( string varname ,          ...
... appendByRef() is not necessary for most intents and purposes. appendByRef() is ...
-
api.is.cached
...o clearCache() and other changes of the cache-settings may have no effect after ...
...on bool isCached ( string template ,         Â...
...r Smarty::CACHING_LIFETIME_SAVED to enable caching. See the caching section for ...
-
language.builtin.functions
...rt of the smarty template engine. They are compiled into corresponding inline PH...
... custom functions with the same name; and you should not need to modify the buil...
-
language.function.html.table
...arated list of column heading names or an array of column heading names.if the c...
-
advanced.features.template.settings
... Changing settings by template Changing settings by template changing, settings,...
... Changing settings by template Changing settings by template changing, settings,...
-
bugs
-
language.function.foreach
...{foreach} is used for looping over arrays of data. {foreach} has a simpler and c...
...Name Description nocache Disables caching of the {foreach} loop Example 7.30....
-
caching.custom
... quote($compile_id); } // range test expiration time if ($exp_time !== null) { $...
... Chapter 15. Caching  Next Custom Cache Implementation As an altern...
...fetchTimestamp; protected $save; public function __construct() { try { $this- db...
-
troubleshooting
...ter 20. Troubleshooting Chapter 20. Troubleshooting chapter, 20, tro...
-
preface
...even in other programming languages), and is also the approach that Smarty takes...
...rty? Smarty is a template engine for PHP, facilitating the separation of present...
...and, no PHP knowledge necessary flexibility for custom development security: ins...
-
advanced.features.static.classes
...ded. This ties the underlying application code structure directly to the present...
...classes. The syntax is the same as in PHP. Note Direct access to PHP classes is ...
-
advanced.features.outputfilters
...he plugins directory by using the loadFilter() method or by setting the $autoloa...
... templates before they are saved to the disk, whereas output filters operate on ...
-
plugins.resources
... Chapter 18. Extending Smarty With Plugins  Next Resources Resource p...
...urce failed: ' . $e- getMessage()); } $this- fetch = $this- db- prepare('SELECT ...
-
language.modifier.strip
...newlines and tabs with a single space, or with the supplied string. Note If you ...
-
caching.cacheable
...ed template code. If you change the status you must manually delete existing com...
... Controlling Cacheability of Output Controlling Cacheability of Output controlli...
...an individual tag can be disabled by adding the "nocache" option flag to the tag...
-
caching.groups
... Chapter 15. Caching  Next Cache Groups You can do more elaborate g...
-
api.assign
...r ); void assign ( string varname ,          ...
-
language.variables
... so that it is the only thing contained between them. Example 4.1. Example...
-
advanced.features.postfilters
...he plugins directory by using the loadFilter() function or by setting the $autol...
-
api.fetch
...es compiled for different languages. You can also set the $compile_id variable o...
...ate output Description string fetch ( string template ,     ...
... different versions of the same template, such as having separate templates comp...
-
api.display
...es compiled for different languages. You can also set the $compile_id variable o...
...ion void display ( string template ,         Â...
... different versions of the same template, such as having separate templates comp...
-
language.function.assign
...assign} is used for assigning template variables during the execution of a templ...
...by all templates using the same root tree. {assign var=foo value="bar" scope="ro...
-
caching.multiple.caches
... Chapter 15. Caching  Next Multiple Caches Per Page You can have mu...
...splay() or fetch() . Let's say that a call to display('index.tpl') may have seve...
-
resources.custom
... can retrieve templates using whatever possible source you can access with PHP: ...
...urce failed: ' . $e- getMessage()); } $this- fetch = $this- db- prepare('SELECT ...
-
api.register.object
...d registerObject ( string object_name ,         ...
-
plugins.compiler.functions
... Chapter 18. Extending Smarty With Plugins  Next Compiler Functions C...
...ction registered under the same name, the compiler function has precedence. mixe...
-
installing.smarty.extended
...instead of repeatedly setting directory paths, assigning the same vars, etc., we...
...ctory paths, assigning the same vars, etc., we can do that in one place. Lets cr...
-
tips.componentized.templates
...es Traditionally, programming templates into your applications goes as follows: ...
...ay() the template. So lets say for example we have a stock ticker on our templat...
-
api.register.resource
... registerResource ( string name ,          Â...
-
index
...vanced Features Security Changing settings by template Template Inheritance Stre...
... Next Smarty - the compiling PHP template engine Monte Ohrt monte at ohrt dot c...
...m Uwe Tews uwe dot tews at googlemail dot com Copyright © 2001-2011 New Digit...
...eturns a template object disableSecurity() — disables template security d...
-
api.clear.compiled.tpl
...learCompiledTemplate ( string tpl_file ,         Â...
-
language.function.section
...ray of 3000 to 3015 $id = range(3000,3015); $smarty- assign('arr',$id); ? Templa...
...e} A {section} is for looping over sequentially indexed arrays of data , unlike ...
...Name Description nocache Disables caching of the {section} loop Required attribu...
-
resources
...t_resource_type has been changed. If the file resource cannot find the requested...
...tory Windows Filepaths String Template Resources Stream Template Resources Exten...
...play('file:index.tpl'); // same as above ? From within a Smarty template {includ...
-
api.create.data
...ata object Description string createData ( object parent ); string c...
-
api.clear.cache
... void clearCache ( string template ,         Â...
-
advanced.features.prefilters
...his is good for preprocessing your templates to remove unwanted comments, keepin...