Adding a Custom Form Element to an Adminhtml Form
问题 Is there a way to add a custom form element to a Magento Adminhtml form without placing the custom element in the lib/Varian folder? I've tracked down the code that's essentially a Varian_Data_Form_Element_ factory public function addField($elementId, $type, $config, $after=false) { if (isset($this->_types[$type])) { $className = $this->_types[$type]; } else { $className = 'Varien_Data_Form_Element_'.ucfirst(strtolower($type)); } $element = new $className($config); $element->setId($elementId)