[dev] Horde_Form buttons
Jan Schneider
jan at horde.org
Wed Jul 28 01:53:49 PDT 2004
Zitat von Andrew Coleman <mercury at appisolutions.net>:
> So i have been looking at some implemented forms that i have in the
> horde tree
> here, and i'm a bit confused...
>
>> From what i have seen, all i have to do is:
> $this->appendButtons(_("Save Item"));
> if (Auth::isAdmin('paper:admin', PERMS_DELETE)) {
> $this->appendButtons(_("Delete Item"));
> }
>
> to add buttons on the bottom. so no matter what, you should always
> get the "Save
> Item" button, yes? All i get is "Submit"... even when i am an admin
Do you by chance call $this->setButtons() after that? That would override
the previously set buttons. Try $this->setButtons(array(_("Submit"),
_("Save Item"), _("Delete Item"))) instead.
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting.php
More information about the dev
mailing list