Re: [SMARTY-DEV] Add more debug vars
| From: | messju mohr | Date: | Fri, 19 Jan 2007 19:21:37 +0000 |
| Subject: | Re: [SMARTY-DEV] Add more debug vars | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-2933@lists.php.net to get a copy of this message | ||
On Fri, Jan 19, 2007 at 07:41:25PM +0100, Jose Cornide wrote:
> Hi everyone,
>
> I've just subscribed to the dev list, I've been using SMARTY since about a
> year ago. I was wondering if there is any way to assign more vars to the
> debug section in some way that they're not included in the general vars
> section of the console (I need to includ $_GET, $_POST, $_COOKIE and some
> sql debug). Also I'd need to know wich templates are cached and wich not.
>
> I've been searching in the dev list but I didn't found what I was looking
> for. Is there any method such as assign_debug_var or something similar?
>
> Thanks in advance
>
> Jose
The easiest would be to provide your own debug template. Just copy the
debug.tpl from the distribution, extend it and configure it at
$smarty->debug_tpl.