[dev] varrenderer question

Jan Schneider jan at horde.org
Sat Jul 24 07:49:50 PDT 2004


Zitat von Andrew Coleman <mercury at appisolutions.net>:

>          $categories = $GLOBALS['backend']->getCategories();
>          foreach ($categories as $c) {
>              $cat[$c['category_id']] = $c['category'];
>          }

>          $categoryVar = &$this->addVariable(_("Category"), 'category_id',
>              'multienum', false, false, null, array($cat));

$cat must be a multidimensional array, iirc.

Jan.

--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting.php


More information about the dev mailing list