RE: [SMARTY] all vars

From: Date: Mon, 08 Jul 2002 16:16:34 +0000
Subject: RE: [SMARTY] all vars
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5231@lists.php.net to get a copy of this message
I hadn't thought of that. I was planning to write a technical document about all the variables used a shopping cart application I wrote and was actually going to go through each SQL query to see what I passed into the template. However, I could put this as a debug feature to turn on what variables a designer can use. Boy oh boy. . . The Smarty docs are already a great reference :) Everyday I'm learning new tricks with Smarty. Regards, Jonathan Chum Systems Developer -----Original Message----- From: Monte Ohrt [mailto:monte@ispi.net] Sent: Monday, July 08, 2002 9:16 PM To: oscar@el-mundo.net Cc: Mattia; smarty-general@lists.php.net Subject: Re: [SMARTY] all vars That will work too, I was thinking from the viewpoint of a template designer dumping out the available vars. Oscar Fernandez Sierra wrote: > 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); > > -- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc. -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.smarty.general (#5231) next »