Ejemplo n.º 1
0
 public function executeUserReports($request)
 {
     $username = $request->getParameter('username');
     $this->forward404Unless($username);
     $user = sfGuardUserPeer::retrieveByUsername($username);
     $this->forward404Unless($user);
     $this->pager = ReportPeer::findByUserAndPublic($user->getId(), true, $request->getParameter('page', 1), 10);
     $this->setTemplate('listMyReports');
 }