[api] $registry->contacts->search
Jonah Dekeyzer <[email protected]>
| Newsgroups | gmane.comp.horde.turba |
|---|---|
| Message-ID | <[email protected]> |
I want to make use of the turba API in order to search for items in my
adresbook in an own module 'advocaat'.
Turba has an adresbook with the sourcename 'advocaat' with several contacts.
When I use the contacts->search api I get en empty result, even looking
for 'a' .
My php-file looks like this:
<?php
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('advocaat');
$term = $_GET['term'];
$args = array('sources' => array('advocaat'),
'names' => array('a'),
);
$cns = $registry->contacts->search($args);
Has my code an error?
Regards,
Jonah
--
turba mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]