getEvents() public method

Return all documents with Event(s)
public getEvents ( ) : array
return array
Esempio n. 1
0
 /**
  * Index action, list all documents with comments
  *
  * @return array
  */
 public function indexAction()
 {
     $model = new Event\Collection();
     $events = $model->getEvents();
     return array('events' => $events);
 }