Re: [SMARTY] all vars
| From: | Oscar Fernandez Sierra | Date: | Mon, 08 Jul 2002 19:52:26 +0000 |
| Subject: | Re: [SMARTY] all vars | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5229@lists.php.net to get a copy of this message | ||
Monte Ohrt wrote:
>
> The debug console shows you that.
>
> Mattia wrote:
> > Is there an instruction to get all vars assigned to a template?
> >
> > tia
> >
> >
> >
>
Sometimes it is good a look at the documentation:
get template vars
This gets an array of the currently assigned template vars.
array get_template_vars();
Example 4-23. get template vars
// get all assigned template vars
$tpl_vars = $smarty->get_template_vars();
// take a look at them
var_dump($tpl_vars);
--
Oscar Fernandez Sierra | Mundinteractivos - El Mundo |
Area de Internet | Pradillo, 42 |
oscar@el-mundo.net | 28002 - Madrid (SPAIN, EU) |
http://www.elmundo.es/ | Tel: (+34) 915864800 (Ext: 4616) |