register_function('tag', array($obj, 'method'))

From: Date: Mon, 17 Mar 2003 22:29:04 +0000
Subject: register_function('tag', array($obj, 'method'))
Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-971@lists.php.net to get a copy of this message
register_function('tag', array($obj, 'method')) Feature request :). Don't think it's currently implemented - tried a few approaches. Similar to PHP functions with callbacks, like usort: http://www.php.net/manual/en/function.usort.php Reason being, my sites are OO with config info, functions, etc. in objects. This way those can be accessed directly from the function, rather than needing globals and so on. Would this be possible to implement? Probably just call the object method directly, or use call_user_func: http://www.php.net/manual/en/function.call-user-func.php Would also be interested in the other register_ methods supporting it :). Gerard

« previous php.smarty.dev (#971) next »