public function showUsers(Request $request, Session $session, $view) { $this->_includeHeader(array('jquery', 'fancybox', 'jquery_tools'), '', true); // Get list of users from database $service = new SecurityService(); $listOfUsers = $service->getUsers(); $loggedInUser = $this->_getCurrentUser(); $currenUserId = $loggedInUser->id; $this->setAttribute('current_id', $currenUserId); $this->setAttribute('list_of_users', $listOfUsers); return new Template('show_users'); }