i have created my own Zend_Form class currently just to add some helper functions and setdefault decorators.
now what i want to do is add some defaults (setMethod('post')) and add some elements (if u know the honeypot method to prevent spam bots.) how do i do it? in the __construct()?
Overwrite the contructor should be fine.
So your other Forms can extend
Your_Formand callinit(), so it stays consistent.If you overwrite the init()-Method you don’t have to call the parent::__construct()…
… but all your extending Forms have to call parent::init() like so