I'm attempting to process a *form* conditionally based upon which
*button* was clicked. This is working using *Zend_Form_Element_Button*,
but not the *Dojo* variant. Calls to addElement look like this:
$this->addElement(
'*Button*',
'save',
array(
'label' => 'Save',
'order' => 100,
)
);
$this->addElement(
'*Button*',
'saveandexit',
array(
'label' => 'Save & Exit',
'order' => 101,
)
);
And the controller code..
if ($*form*->save->*isChecked*()) {
$params = array('id' => $post->id);
$this->redirector->gotoSimple('edit', 'post', 'dashboard', $params);
}
Am I missing something?