i learnt that i can set the ignore
flag on a Zend_Form_Element
so that its ignored when getting values etc.
i have
$this->addElement('submit', 'btnLogin', array(
'label' => 'Login',
'ignore' => true
));
but when i do
foreach ($this->getElements() as $elem) {
echo $elem->getName() . "<br />";
}
it stills includes the btnLogin