Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Smarty with PHP5

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
AZTEK
Smarty Pro


Joined: 16 Apr 2003
Posts: 235
Location: Purdue University

PostPosted: Mon Jun 30, 2003 5:48 pm    Post subject: Smarty with PHP5 Reply with quote

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
View user's profile Send private message Visit poster's website
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Mon Jun 30, 2003 9:37 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
AZTEK
Smarty Pro


Joined: 16 Apr 2003
Posts: 235
Location: Purdue University

PostPosted: Tue Jul 01, 2003 1:32 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Tue Jul 01, 2003 7:22 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty Development All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP