Beispiel #1
0
 public function action_feed()
 {
     if ($this->user->id) {
         $feed = Helper_Game::getLiveFeed($this->user->id);
         $views = Controller_Profile::feedViews($feed);
         foreach ($views as $view) {
             echo new Element("div", $view->render(), array("class" => "live-item"));
         }
         $this->user->lastlive = Date('Y-m-d H:i:s');
         $this->user->save();
     } else {
         echo new Element("div");
     }
 }