[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smarty-dev
Subject:    Re: [SMARTY-DEV] I found a BUG in Smarty!
From:       "Jan Rosier" <rosier () interstroom ! nl>
Date:       2002-05-16 15:44:42
[Download RAW message or body]

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


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic