Re: [SMARTY-DEV] Object Support
| From: | Jochem Maas | Date: | Fri, 05 Aug 2005 08:56:38 +0000 |
| Subject: | Re: [SMARTY-DEV] Object Support | ||
| References: | 1 2 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-2754@lists.php.net to get a copy of this message | ||
Michael Davey wrote:
Thomas Schulz wrote:I think the lack of enthusiasm can be put down to a few things - none of which really have a baring one persons' proposal and/or patch with regard to 'extended' object access/manipulation. 1. Rasmus' Theorem (Every template language evolves until it turns into PHP) 2. There as so many different ways in which objects could be further/better (?) exposed inside templates that is it very difficult to choose one without pissing off _lots_ of people. 3. The fact that Smarty itself is still php4 (runs in php5 fine ofcourse) and that there are also people thinking about/working on porting Smarty to make use of some of the php5 specific functionality - what and how this is doen will surely have a strong baring on how/what is implemented in terms of object access within templates - given that php5 itself has undergone a not so slight OO overhaul - I can imagine that this alone would keep the developers (I'm not one - just an interested 3rd party) of Smarty from doing enhancments on the object access side of things to avoid doing work twice and creating stuff now which will most likely have BC issues in a php5-specific version of Smarty. just a few thoughts.Hi, are there currently any plans to simplify and extend Smartys support for accessing objects? What I want to see is: Function: {object.method}Hi Thomas, I posted a patch to this list on Jul 21, 2005 (subject: "smarty custom functions namespaces") to do the above, but using '::' rather than '.' The patch wasn't greeted with much enthusiasm. I hope you have more success than I did.