Re: [SMARTY-DEV] I found a BUG in Smarty!
| From: | Jan Rosier | Date: | Thu, 16 May 2002 15:44:42 +0000 |
| Subject: | Re: [SMARTY-DEV] I found a BUG in Smarty! | ||
| References: | 1 2 3 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-87@lists.php.net to get a copy of this message | ||
Have you tried {insert} instead of {include_php}?
Greetings,
Jan Rosier
----- Original Message -----
From: "Johann" <programisci_listy@murator.com.pl>
To: "Ivo Jansch" <ivo@ibuildings.nl>
Cc: <smarty-dev@lists.php.net>
Sent: Thursday, May 16, 2002 3:02 PM
Subject: Re: [SMARTY-DEV] I found a BUG in Smarty!
> On 16 maja 2002 at 14:52:59
> Ivo Jansch <ivo@ibuildings.nl>
> wrote:
>
> > My guess is that the include_php does an include_once() call, so
> > therefor, the file is included only once. I doubt that this is a bug. I
> > call it a feature. :)
>
> I changed include_once() into include() and now it works correctly.
> There are lines 1103 and 1111 of Smarty.class.php for version 2.1.1.
>
> I think it is not a good idea to have include_once because of side
> effects which appeared in my example.
>
> > But perhaps include_php could have a parameter that states whether
> > to use include or include_once.
>
> I think the default settings should be include(), not include_once().
>
> --
> Johann
>
>
> --
> Smarty Development Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php