« Return to Thread: Zend_Form INI config documentation

Re: Zend_Form INI config documentation

by weierophinney :: Rate this Message:

Reply to Author | View in Thread

-- Joó Ádám <ceriak@...> wrote
(on Friday, 06 February 2009, 01:18 PM +0100):
> Is there any thorough documentation on the configuration options of
> Zend_Form provided by the INI config interface?

Each subcomponent of Zend_Form documents how configuration works for
that component, and each discrete class has documentation of the various
set*() methods. I bring that up because the basic rules are:

  * All set*() methods (with some exclusions) translate directly to
    configuration options. So, for instance setLabel() has a
    corresponding 'label' configuration key.

  * Any other keys you specify will be registered as attributes of the
    given class (i.e., metadata). For elements, this means that if you
    provide, for instance, a 'class' key, you'll be registering a
    'class' property; for a form, it would register the 'class'
    attribute, and be accessible via getAttrib('class').

Hopefully that helps.

--
Matthew Weier O'Phinney
Software Architect       | matthew@...
Zend Framework           | http://framework.zend.com/

 « Return to Thread: Zend_Form INI config documentation