> -- Gordon Ross <gr306@ucs.cam.ac.uk> wrote
> (on Monday, 25 August 2008, 09:34 PM +0100):
>> Zend does a great job of auto-naming elements most of the time. (i.e.
>> by forming the id from the element's location in the structure of the
>> Zend_Form)
>>
>> However, occasionally, I'd like to override this completely. Is there
>> a way to stop Zend doing it's thing to the name ?
>
> Call one of:
>
> * $element->id = 'someidentifier'
Doesn't work (gives a PHP error)
> * $element->setAttrib('id', 'someidentifier');
That works great for id, but not for name. e.g. I'd like to change these
names:
<td>
<input type="submit" name="Footer[br][DDI]" id="Footer-br-DDI"
value="Process DDI"></td>
<td>
To something more meaningful.
Is there a way ?
Thanks,
GTG
没有评论:
发表评论