/** Work out how many people have used a certain IP address */ public function iptousersAction() { if ($this->_getParam('ip', false)) { $ip = $this->_getParam('ip'); $this->view->headTitle('Users who have used IP address: ' . $ip); $logins = new Logins(); $this->view->logins = $logins->users2Ip($ip); } else { throw new Pas_Exception_Param($this->_missingParameter); } }