'y'); protected function _initElements() { $dataObj = new App_ECommerce_Product_Image_Admin_Obj(); $image = $dataObj->getConfig('image')->toArray(); $this->addElement('text', 'title', array('label' => 'Title', 'required' => true, 'maxlength' => 255)); $resize = $image['width'] . 'x' . $image['height'] . $image['resizeMethodAlias']; $this->addElement( 'extendedImage', 'image', array( 'label' => 'Image', 'required' => true, 'resize' => $resize, 'validators' => array( array( 'ImageSize', false, array('minwidth' => $image['width']) ) ) ) ); $this->addElement('checkbox', 'show', array('label' => 'Show on user end', 'decoration' => 'simple')); return $this; } }