Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $this->getEventManager()->trigger('init', $this);
- MyForm extends ZfcUserFormRegister {
- public funtion init(){
- $this->add(array(
- 'name' => 'first_name',
- 'options' => array(
- 'label' => 'First Name',
- ),
- 'attributes' => array(
- 'type' => 'text'
- ),
- ));
- $this->add(array(
- 'name' => 'last_name',
- 'options' => array(
- 'label' => 'Last Name',
- ),
- 'attributes' => array(
- 'type' => 'text'
- ),
- ));
- }
- }
- public function getServiceConfig()
- {
- return array(
- 'factories' => array(
- 'myform' => function ($sm) {
- $form = new MyForm(null, $options);
- return $form;
- },
- ),
- );
- }
Add Comment
Please, Sign In to add comment