Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

$var->func()->func()

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests
View previous topic :: View next topic  

Musthave?
Yes
57%
 57%  [ 4 ]
No
28%
 28%  [ 2 ]
Not using
14%
 14%  [ 1 ]
Total Votes : 7

Author Message
kost
Smarty Rookie


Joined: 24 Jan 2006
Posts: 33
Location: Kiev, Ukraine

PostPosted: Tue Jul 31, 2007 1:41 pm    Post subject: $var->func()->func() Reply with quote

Hello. Subj is not working in current version of Smarty (when function returns an object). Could you do that feauture or I should look at sources and add it myself?
_________________
[ru]
http://phpstones.blogspot.com
Back to top
View user's profile Send private message Visit poster's website
Shadzik
Smarty Rookie


Joined: 01 Aug 2007
Posts: 5

PostPosted: Wed Aug 01, 2007 11:37 am    Post subject: Reply with quote

This is usefull if You'r using PHP 5.x
I found this somewhere ( i don't remember)
This:
Code:
<?php
$this->_obj_call_regexp = '(?:' . $this->_obj_start_regexp . '(?:' . $this->_obj_params_regexp . ')?(?:' . $this->_dvar_math_regexp . '(?:' . $this->_num_const_regexp . '|' . $this->_dvar_math_var_regexp . ')*)?)';
?>


Change to this:
Code:
<?php
$this->_obj_call_regexp = '(?:' . $this->_dvar_regexp . '(?:(?:' . $this->_obj_ext_regexp . ')+' . '(?:' . $this->_obj_params_regexp . ')?)*)';
?>


to administrator
Is there any work with new version for PHP5 ? or do You want to finish this project with version 2.6.x ?That would be sad Sad
Back to top
View user's profile Send private message
kost
Smarty Rookie


Joined: 24 Jan 2006
Posts: 33
Location: Kiev, Ukraine

PostPosted: Wed Aug 01, 2007 11:45 am    Post subject: Reply with quote

Shadzik wrote:
This is usefull if You'r using PHP 5.x
I found this somewhere ( i don't remember)


Of course I do! And you should! And you will!

PEAR is already on php5, so why Smarty isn't?

http://php.net/ - news at [13-Jul-2007]
_________________
[ru]
http://phpstones.blogspot.com
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: Wed Aug 01, 2007 2:11 pm    Post subject: Reply with quote

kost wrote:
PEAR is already on php5, so why Smarty isn't?


Smarty works fine with php5.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kost
Smarty Rookie


Joined: 24 Jan 2006
Posts: 33
Location: Kiev, Ukraine

PostPosted: Wed Aug 01, 2007 2:24 pm    Post subject: Reply with quote

messju wrote:
Smarty works fine with php5.


Yeah, I'm working with Smarty in php5, thank you, but still think that Smarty is bad-integrated. I'll post something when I'll come home about it (if I'll have what to post) in a different topic.

But what about subj?
_________________
[ru]
http://phpstones.blogspot.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests 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