I have came across with one problem i need to show different form elements
- Based on different condition to the user i know it will be easy in core php but want to do in zend environment
EXAMPLE:
If person is disabled we will show two radio buttons
$disable = new Shaadi_Form_Element_radio('disablitiy');
$disableArr = array(""=>" Doesn't Matter","Y"=>" show disabled");
IF he is not disabled
$disable = new Shaadi_Form_Element_radio('disablitiy');
$disableArr = array(""=>" Doesn't Matter","N"=>" do not show disabled");
I want this code to be done in form how can I optimize this please help me