[pmwiki-users] howto output a function referenced in Class?
Patrick R. Michaud
pmichaud at pobox.com
Thu Feb 3 00:11:07 CST 2005
On Thu, Feb 03, 2005 at 05:53:41AM +0530, V Krishn wrote:
> Hello,
> I was wanting to get an output of a function referenced in a Class.
> ....something like,
> <?php $ref->printAll('items'); ?>
>
> .... by inserting a Variable(code) directly in Template (.tmpl) file.
>
> It would be great help if someone could tell me how this could be possible.
In the template you can do:
<!--function:MyFunc-->
and in your config.php you can put
function MyFunc($pagename, $args) { $ref->printAll('items'); }
Pm
More information about the pmwiki-users
mailing list