mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-05 23:01:37 +01:00
17 lines
406 B
Markdown
17 lines
406 B
Markdown
# Streams
|
|
|
|
You can also use streams to call variables. *{$foo:bar}* will use the
|
|
*foo://bar* stream to get the template variable.
|
|
|
|
Using a PHP stream for a template variable resource from within a
|
|
template.
|
|
|
|
```smarty
|
|
{$foo:bar}
|
|
```
|
|
|
|
NB. Support for using streams to call variables is deprecated since Smarty v5.1 and will be removed
|
|
in a future version.
|
|
|
|
See also [`Template Resources`](../resources.md)
|