It is a rigid rule that Zend_Form can not have elements of same names. If I add a second element with the same name, the first one will be overwritten. When I started to use Zend_Form, I thought this rule makes life difficult. For example, if the form have “Next” and “Previous” buttons, I must… Continue reading Elements of same name in Zend_Form
Day: December 9, 2009
Limitation of Mage::getModel method
Magento getModel can not initialise an instance whose class requires more than 1 argument. I assume Magento native classes can explode options from the first argument to satisfy getModel. However, if I want to use 3rd party class like Zend_Form_Element inside Magento, there is no ways to use getModel to achieve the same result as… Continue reading Limitation of Mage::getModel method