|
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 |
Musthave? |
Yes |
|
57% |
[ 4 ] |
No |
|
28% |
[ 2 ] |
Not using |
|
14% |
[ 1 ] |
|
Total Votes : 7 |
|
Author |
Message |
kost Smarty Rookie
Joined: 24 Jan 2006 Posts: 33 Location: Kiev, Ukraine
|
Posted: Tue Jul 31, 2007 1:41 pm Post subject: $var->func()->func() |
|
|
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 |
|
Shadzik Smarty Rookie
Joined: 01 Aug 2007 Posts: 5
|
Posted: Wed Aug 01, 2007 11:37 am Post subject: |
|
|
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 |
|
Back to top |
|
kost Smarty Rookie
Joined: 24 Jan 2006 Posts: 33 Location: Kiev, Ukraine
|
Posted: Wed Aug 01, 2007 11:45 am Post subject: |
|
|
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 |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Wed Aug 01, 2007 2:11 pm Post subject: |
|
|
kost wrote: | PEAR is already on php5, so why Smarty isn't? |
Smarty works fine with php5. |
|
Back to top |
|
kost Smarty Rookie
Joined: 24 Jan 2006 Posts: 33 Location: Kiev, Ukraine
|
Posted: Wed Aug 01, 2007 2:24 pm Post subject: |
|
|
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 |
|
|
|
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
|