'y'); protected function _initElements() { $dataObj = new App_Partner_Admin_Obj(); $image = $dataObj->getConfig('image')->toArray(); $banner = $dataObj->getConfig('banner')->toArray(); $this->addElement('text', 'title', array('label' => 'Title', 'required' => true, 'maxlength' => '255')); $this->addElement( 'extendedImage', 'image', array( 'label' => 'Logo Image', 'required' => true, 'resize' => $image['width'] . 'x' . $image['height'], ) ); $this->addElement( 'text', 'url', array( 'label' => 'Url', 'maxlength' => '255', 'filters' => array('StringTrim'), 'validators' => array('Url'), 'description' => 'Example: http://www.adaptainc.com', ) ); $this->addElement( 'extendedImage', 'banner', array( 'label' => 'Banner Ad Image', 'required' => true, 'resize' => $banner['width'] . 'x' . $banner['height'], ) ); $this->addElement( 'text', 'bannerUrl', array( 'label' => 'Banner Ad Url', 'maxlength' => '255', 'filters' => array('StringTrim'), 'validators' => array('Url'), 'description' => 'Example: http://www.adaptainc.com', ) ); $this->addElement('checkbox', 'bannerShow', array('label' => 'Show Banner Ad on user end', 'decoration' => 'simple')); $this->addElement('checkbox', 'show', array('label' => 'Show on user end', 'decoration' => 'simple')); return $this; } }