[horde] registering APIs
jan at horde.org
Fri Oct 15 15:04:27 PDT 2004
Zitat von Steve Ivy <steve at contentconnections.com>:
> I'm trying to implement an API for my horde app, and I'm getting this
> >"The method "myApp/getPathArrayForTool" is not defined in the Horde
> I've got the following in my myApp/lib/api.php
> >$_services['getPathArrayForTool'] = array (
> > 'args' => array('tool_id'),
> > 'type' => 'stringArray',
> >function _myApp_getPathArrayForTool ($tool_id)
> > ...
> > return $ary;
> I've looked at a couple other horde apps, but I can't find an example
> of anything else I should be doing to make this work. What am I
Either use Registry::callByPackage() or add a 'provides' entry to the
section of your app in registry.php.
Do you need professional PHP or Horde consulting?
More information about the horde