Guest User

Untitled

a guest
Jan 18th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. $this->getEventManager()->trigger('init', $this);
  2.  
  3. MyForm extends ZfcUserFormRegister {
  4. public funtion init(){
  5. $this->add(array(
  6. 'name' => 'first_name',
  7. 'options' => array(
  8. 'label' => 'First Name',
  9. ),
  10. 'attributes' => array(
  11. 'type' => 'text'
  12. ),
  13. ));
  14.  
  15. $this->add(array(
  16. 'name' => 'last_name',
  17. 'options' => array(
  18. 'label' => 'Last Name',
  19. ),
  20. 'attributes' => array(
  21. 'type' => 'text'
  22. ),
  23. ));
  24. }
  25. }
  26.  
  27. public function getServiceConfig()
  28. {
  29. return array(
  30. 'factories' => array(
  31. 'myform' => function ($sm) {
  32. $form = new MyForm(null, $options);
  33. return $form;
  34. },
  35. ),
  36. );
  37. }
Add Comment
Please, Sign In to add comment