Re: [SMARTY] Bug or Feature
| From: | Monte Ohrt | Date: | Fri, 14 Feb 2003 20:42:22 +0000 |
| Subject: | Re: [SMARTY] Bug or Feature | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7774@lists.php.net to get a copy of this message | ||
Smarty does not show the console when fetch()'ing content since it
didn't make much sense to do so, especially when using fetch() for
content other than HTML, like e-mail. {debug} however, is done at
runtime of the template, and was implemented for the purpose of
overriding the debugging settings and generating debug content.
Monte
On Fri, 2003-02-14 at 14:13, Hinrich Donner wrote:
> Hi,
>
> if I use $smarty->fetch() having set $smarty->debugging to 1, Smarty won't
> produce the debug output unless I use {debug} somewhere in the template.
> Is this a bug or a feature?
>
> I like to use Smarty this way:
>
> $smarty =& new Smarty();
> $output = $smarty->fetch('foo.tpl');
> echo modifyOutput(&$output);
>
> Hinrich
>
> --
> Hinrich Donner
--
Monte Ohrt <monte@ispi.net>