Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $bu = $this->getView()->baseUrl();
- $form = new Zend_Form(array(
- 'methos' => 'post',
- 'name' => 'statusform',
- 'enctype' => 'multipart/form-data',
- 'elementPrefixPath' => array(
- 'App_Form_Element' => 'App/Form/Element' // ну или как-то так, в заисимости от проекта
- ),
- 'elements' => array(
- 'prodstatus_name' => array('text', array(
- 'required' => true,
- 'label' => 'Status Name',
- 'filters' => array('StringTrim')
- )),
- 'prodstatus_icon' => array('radioImage', array(
- 'label' => 'Select Icon',
- 'width' => '48',
- 'multioptions' => array(
- "black_new.png" => $bu.'/icons/black_new.png',
- "black_sale.png" => $bu.'/icons/black_sale.png',
- "blue_new.png" => $bu.'/icons/blue_new.png',
- "label_sale.png" => $bu.'/icons/label_sale.png',
- "new_blue.png" => $bu.'/icons/new_blue.png',
- "new_red.png" => $bu.'/icons/new_red.png',
- "sale_blue.png" => $bu.'/icons/sale_blue.png',
- "sale_green.png" => $bu.'/icons/sale_green.png',
- "sale_yellow.png" => $bu.'/icons/sale_yellow.png',
- "sticker_blue_sale.png" => $bu.'/icons/sticker_blue_sale.png'
- )
- )),
- 'submit' => array('submit', array(
- 'ignore' => true,
- 'label' => 'Save'
- )),
- )
- ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement