/** * The default action - show the home page */ public function indexAction() { if ($this->getRequest()->isPost()) { $this->userService->NewUser($this->_getParam('name'), $this->_getParam('email'), $this->_getParam('contactType')); } $this->view->users = $this->userService->GetAllUsers()->toArray(); }