Re: PHP5: Static methods

From: Date: Mon, 29 Nov 2004 08:00:32 +0000
Subject: Re: PHP5: Static methods
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12006@lists.php.net to get a copy of this message
Hello! Yes I know that, that's why I'm asking that :) Any other ideas?! Maybe something like a function CallStaticMethod($class, $method){} ... would that be possible ? Kind regards, Dejan "Ognyan Bankov" <bankov@metatotem.com> wrote in message news:20041126073211.67114.qmail@pb1.pair.com... | Dejan Markic wrote: | > Hello! | > | > I don't know if this was discussed already, but ... I just can seem to find | > a way to call a static method from Smarty in PHP5? Any clues? | > | > Thanks and kind regards, | > Dejan | | {php} | some_class::some_static_method(); | {/php} | | should work, but is generally bad idea to have php calls in your templates

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