'n', 'showOnSponsors' => 'y']; protected function _initElements() { $dataObj = new App_Partner_Admin_Obj(); $image = $dataObj->getConfig('image')->toArray(); $this->addElement('text', 'title', ['label' => 'Title', 'required' => true, 'maxlength' => '255']); $this->addElement('select', 'groupId', [ 'label' => 'Group', 'multiOptions' => ['' => 'Select One'] + (new Qs_Db_Table('PartnerGroup'))->get4Select(), ]); $this->addElement( 'extendedImage', 'image', [ 'label' => 'Logo Image', 'required' => true, 'resize' => $image['width'] . 'x' . $image['height'], ] ); $this->addElement( 'text', 'url', [ 'label' => 'Url', 'maxlength' => '255', 'filters' => ['StringTrim'], 'validators' => ['Url'], 'description' => 'Example: http://www.adaptainc.com', ] ); $this->addElement('checkbox', 'showOnHomepage', ['label' => 'Show on Homepage', 'decoration' => 'simple']); $this->addElement('checkbox', 'showOnSponsors', ['label' => 'Show on Sponsors page', 'decoration' => 'simple']); return $this; } }