Re: HTML_Template_Flexy

From: Date: Mon, 14 Jun 2004 09:19:31 +0000
Subject: Re: HTML_Template_Flexy
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13141@lists.php.net to get a copy of this message
* Alan Knowles (alan@akbkhome.com) wrote: > function outputFooter() { > $t = new HTML_Template_Flexy(); > $t->compile('footer.html'); > $t->outputObject($this); > } > > In the template.. > {outputFooter():h} > > or: > > <flexy:include src="footer.html"> Thanks. I have another question that I don't see how could be solved. 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? - Martin

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