Exemplo n.º 1
0
 /**
  * Shows the latest activity on the forum
  */
 public function activityAction($offset = 0)
 {
     $parameters = ['order' => 'created_at DESC', 'limit' => ['number' => self::POSTS_IN_PAGE, 'offset' => 0]];
     $this->view->setVars(['total' => Activities::count(), 'activities' => Activities::find($parameters)]);
     $this->tag->setTitle('Recent Activity on the Forum');
 }
Exemplo n.º 2
0
 /**
  * Shows the latest activity on the forum
  */
 public function activityAction($offset = 0)
 {
     $this->view->total = Activities::count();
     $parameters = array('order' => 'created_at DESC', 'limit' => array('number' => self::POSTS_IN_PAGE, 'offset' => 0));
     $this->view->activities = Activities::find($parameters);
     $this->tag->setTitle('Recent Activity on the Forum');
 }