Re: Class methods for custom functions

From: Date: Thu, 06 Dec 2001 07:48:08 +0000
Subject: Re: Class methods for custom functions
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2159@lists.php.net to get a copy of this message
Hoi, Andrei Zmievski wrote:
Because the accepted syntax in PHP for specifying a method as a closure is array($obj, 'method'). And then, what if your $myobj is not in globals but inside a function?
I'm lost in what you are trying to accomplish here. Why would I ever register a function for use in smarty, that needs to call a method on an object that is created in another function? What exactly are you trying to implement here, because I lost the picture. :) Greetings, Ivo -- Ivo Jansch <ivo@ibuildings.nl> ibuildings.nl BV - information technology http://www.ibuildings.nl

« previous php.smarty.general (#2159) next »