Re: HTML_Template_Flexy

From: Date: Wed, 16 Jun 2004 01:33:52 +0000
Subject: Re: HTML_Template_Flexy
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13178@lists.php.net to get a copy of this message
Martin Sarajervi wrote:
I want to do: <a href="index.php?id=1" flexy:if="has_access()">Foo</a> But the function has_access is a member of a class, and takes arguments, how can I pass arguments to the function when calling it from the template like this?
I cant remember what the status of this is: but this should work - if not file a bug.. flexy:if="has_access(avariable)" flexy:if="has_access(#astring value#)" flexy:if="has_access(#astring value#,avariable)" Regards Alan
- Martin
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com

« previous php.pear.general (#13178) next »