public function executeNeedsBN(sfWebRequest $request) { #security if (!$this->getUser()->hasCredential(array('Administrator', 'Staff', 'Member'), false)) { $this->getUser()->setFlash("warning", 'You don\'t have permission to access this url ' . $request->getReferer()); $this->redirect('dashboard/index'); } $this->page = $page = $request->getParameter('page', 1); $this->max = sfConfig::get('app_max_member_needsbn_per_pager', 10); $this->pager = MemberPeer::getNeedsBNPager($this->max, $this->page); $this->members = $this->pager->getResults(); }