'y'); protected $_hasButtons = true; protected function _initElements() { $dataObj = new App_SocialLink_Obj(); $image = $dataObj->getConfig('image')->toArray(); parent::_initElements(); $this->addElement('text', 'title', array('label' => 'Service Name', 'required' => true)); $this->addElement( 'text', 'url', array( 'label' => 'URL', 'required' => true, 'validators' => array('Url'), 'description' => 'Example: http://www.adaptainc.com' ) ); $this->addElement( 'extendedImage', 'image', array( 'label' => 'Icon Image', 'required' => true, 'resize' => $image['width'] . 'x' . $image['height'], 'thumbnailWidth' => $image['width'], 'thumbnailHeight' => $image['height'] ) ); $this->addElement('checkbox', 'enabled', array('label' => 'Show on user end', 'decoration' => 'simple')); return $this; } }