-
installing.smarty.basic
.../ for *nix machines and c:\webroot\libs\Smarty-v.e.r\ for the windows environmen...
...com/ guestbook/ templates/ index.tpl templates_c/ configs/ cache/ htdocs/ index....
-
api.get.tags
...= $smarty- createTemplate('index.tpl'); // get tags $tags = $smarty- getTags($tp...
-
language.function.append
...a The value being assigned index string No n/a The index for the new array eleme...
-
variable.default.resource.type
...ing that $smarty- display('index.tpl') and $smarty- display('file:index.tpl') ar...
-
language.variables.smarty
...ET) http://www.example.com/index.php?page=foo *} {$smarty.get.page} {* display t...
-
api.template.exists
...php // set the filename eg index.inc.tpl $mid_template = $_GET['page'].'.inc.tpl...
-
smarty.for.designers
...P Associative arrays Array indexes Objects Variable scopes Variables loaded from...
-
language.syntax.variables
...ou can reference arrays by index numerically or non-numerically. Also reference ...
-
api.assign.by.ref
...ul if you want a PHP array index value to be affected by its reassignment from a...
-
language.variable.scopes
...= $smarty- createTemplate('index.tpl'); $tpl- assign('bar','bar-template'); // a...
-
api.create.template
...= $smarty- createTemplate('index.tpl'); // assign variable to template scope $tp...
-
api.append.by.ref
...ul if you want a PHP array index value to be affected by its reassignment from a...
-
caching
...ing the front page of your website that does not change its content very often, ...
...URRENT); $smarty- display('index.tpl'); ? With caching enabled, the function cal...
-
api.is.cached
...T); if(!$smarty- isCached('index.tpl')) { // do database calls, assign vars here...
-
language.builtin.functions
...} {foreach},{foreachelse} @index @iteration @first @last @show @total {break} {c...
-
language.function.html.table
...dd"') ); $smarty- display('index.tpl'); ? The variables assigned from php could ...
-
advanced.features.template.settings
...= $smarty- createTemplate('index.tpl); $tpl- cache_lifetime = 600; //or $tpl- se...
-
language.function.foreach
... {foreach} properties are @index , @iteration , @first , @last , @show , @total ...
-
caching.custom
...L, * PRIMARY KEY (`id`), * INDEX(`name`), * INDEX(`cache_id`), * INDEX(`compile_...
-
troubleshooting
...dir is not writable by the web server. See the bottom of the installing smarty p...
...rrors Warning: Smarty: [in index.tpl line 4]: syntax error: unknown tag - '%blah...
-
advanced.features.outputfilters
...email"); $smarty- display("index.tpl'); // now any occurrence of an email addres...
-
plugins.resources
...pt $smarty- display("mysql:index.tpl"); ? And from within Smarty template: {incl...
-
language.modifier.strip
... one."); $smarty- display('index.tpl'); ? Where template is: {$articleTitle} {$a...
-
caching.cacheable
...); if (!$smarty- isCached('index.tpl')) { // fetch $obj from db and assign... $s...
-
caching.groups
...structure like themes/blue/index.tpl and you want to be able to clear all the ca...
-
language.variables
...P Associative arrays Array indexes Objects Variable scopes Variables loaded from...
-
advanced.features.postfilters
...mment'); $smarty- display('index.tpl'); ? The postfilter above will make the com...
-
api.fetch
... $output = $smarty- fetch('index.tpl', $cache_id); // do something with $output ...
-
api.display
...ist if(!$smarty- isCached('index.tpl')) { // dummy up some data $address = '245 ...
-
language.function.assign
...ole_page = $smarty- fetch('index.tpl'); // this will output 'smarty' as the temp...
-
caching.multiple.caches
...sing values from a client (web browser) into Smarty or any PHP application. Alth...
...ay that a call to display('index.tpl') may have several different output content...
-
resources.custom
...pt $smarty- display("mysql:index.tpl"); ? And from within Smarty template: {incl...
-
plugins.compiler.functions
...hing like this: ?php echo 'index.tpl compiled at 2002-02-20 20:02'; ? See also r...
-
installing.smarty.extended
...); $this- setTemplateDir('/web/www.example.com/guestbook/templates/'); $this- se...
...; } } ? Now lets alter the index.php file to use setup.php : Example 2.11.Â...
-
tips.componentized.templates
...sign'], $ticker_info); } ? index.tpl {load_ticker symbol='SMARTY' assign='ticker...
-
api.register.resource
...marty- display('c:/path/to/index.tpl'); Note Prior to Smarty 3.1 registerResourc...
-
index
...directories writable 2.8. /web/www.example.com/guestbook/templates/index.tpl 2.9...
...P Associative arrays Array indexes Objects Variable scopes Variables loaded from...
...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...
...$myobj); $smarty- display('index.tpl'); ? And here's how to access your objects ...
-
api.clear.compiled.tpl
...ty- clearCompiledTemplate('index.tpl'); // clear entire compile directory $smart...
-
language.function.section
...l'), array( 'home phone', 'web'), array( 'cell phone') ); $smarty- assign('conta...
... looping over sequentially indexed arrays of data , unlike {foreach} which is us...
-
resources
...template_dir . This allows websites employing multiple sets of templates better ...
...dir ?php $smarty- display('index.tpl'); $smarty- display('file:index.tpl'); // s...
-
api.create.data
...= $smarty- createTemplate('index.tpl',$data); // display the template $tpl- disp...
-
api.clear.cache
...plate $smarty- clearCache('index.tpl'); // clear the cache for a particular cach...
-
advanced.features.prefilters
...ments'); $smarty- display('index.tpl'); ? See also registerFilter() , postfilter...