'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( '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: ' . constant('EXAMPLE_URL'), ] ); $this->addElement('checkbox', 'show', ['label' => 'Show on user end', 'decoration' => 'simple']); return $this; } }