Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
Stream Template Resources {#resources.streams}
2
=========================
3
 
4
Streams allow you to use PHP streams as a template resource. The syntax
5
is much the same a traditional template resource names.
6
 
7
Smarty will first look for a registered template resource. If nothing is
8
found, it will check if a PHP stream is available. If a stream is
9
available, Smarty will use it to fetch the template.
10
 
11
> **Note**
12
>
13
> You can further define allowed streams with security enabled.
14
 
15
Using a PHP stream for a template resource from the display() function.
16
 
17
 
18
     $smarty->display('foo:bar.tpl');
19
 
20
 
21
 
22
Using a PHP stream for a template resource from within a template.
23
 
24
 
25
     {include file="foo:bar.tpl"}
26
 
27