Re: [SMARTY-DEV] problems with PHP5
| From: | Terje Torkelsen | Date: | Sat, 21 Jun 2003 20:44:38 +0000 |
| Subject: | Re: [SMARTY-DEV] problems with PHP5 | ||
| References: | 1 2 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1665@lists.php.net to get a copy of this message | ||
On Sat, 21 Jun 2003 22:04:26 +0200, Boots wrote
(in message <20030621200426.13354.qmail@web9903.mail.yahoo.com>):
> I don't get it. Why would changing $this to $smarty break things? The
> suggestion, I believe, was only to change $this to $smarty in functions
> where $this is the parameter name for the $smarty object being passed
> to the function.
>
> Correct me if I am wrong, but changing the parameter definition AND the
> function code both to both use $smarty instead of $this would not
> affect anything at all in Smarty. On the other hand, I wouldn't trust
> Terje's "patch" to do that :)
>
> xo boots
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
thanx :)
my patch wasnt really mean for a "real" patch eather. as i dont bother
learning the smarty code i thought that replacing $this with $smarty wouldnt
affect much.
seems like all the internal functions didnt work thou... printing {$var}
would work, but {$var|date_format....} wouldnt. so im kind of stuck as much
of my php code is php5 (abstract classes, interfaced etc), my website is
using smarty templates and smarty is not comptable with php5..