Is there a way to prefix Zend_Form element name?
问题 I have a page that has multiple forms on it. Several of the forms share an element with the same name like CustomerID. This means the element ID CustomerID will collide with that same ID in the other forms. I would like to find a clean way to prefix the field name with the name of the form. For instance PaymentProfile_CustomerID. Suggestions? So far, the best I have been able to come up with is: class MyForm extends Zend_Form { public function init() { $this->setName("PaymentProfile"); ...