|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
AZTEK Smarty Pro
Joined: 16 Apr 2003 Posts: 235 Location: Purdue University
|
Posted: Mon Jun 30, 2003 5:48 pm Post subject: Smarty with PHP5 |
|
|
PHP5beta1 seems to be more strict about of alot of things namely
[php:1:ffa4e84ade]<?php
$func = 'test';
$func(1);
?>[/php:1:ffa4e84ade]
doesn't work anymore so I wrote up a quick patch http://fusion.dyn.ee/smarty-php5.patch _________________ "Imagine a school with children that can read and write, but with teachers who cannot, and you have a metaphor of the Information Age in which we live." -Peter Cochrane |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Mon Jun 30, 2003 9:37 pm Post subject: |
|
|
hmm, it seems to work okay with my PHP/5.0.0b1 . it only works on user-defined functions or on built-in functions. it does not work language-constructs like print, require, eval, echo, isset... |
|
Back to top |
|
AZTEK Smarty Pro
Joined: 16 Apr 2003 Posts: 235 Location: Purdue University
|
Posted: Tue Jul 01, 2003 1:32 am Post subject: |
|
|
It stoped working when i use {assign} in a tempate it said Fatal error blah blah method must be a string _________________ "Imagine a school with children that can read and write, but with teachers who cannot, and you have a metaphor of the Information Age in which we live." -Peter Cochrane |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Tue Jul 01, 2003 7:22 am Post subject: |
|
|
ah, i see. i didn't try 5.0.0b1 with Smarty-2.5.0 only with the cvs-version where the generated function-call looks different. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|