List Info

Thread: Add more debug vars




Add more debug vars
user name
2007-01-19 12:41:25
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
Re: Add more debug vars
user name
2007-01-19 13:21:37
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.

-- 
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


Re: Add more debug vars
user name
2007-01-19 13:27:38
On 1/19/07, messju mohr <messjulammfellpuschen.de>
wrote:
>
> 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.
>
> --
> Smarty Development Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub
.php
>
>
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )