/** * The default action - show the home page */ public function groupAction() { $user = $this->authenticate(); // group view $feedId = (int) $this->getRequest()->getParam('feedId'); if (!$feedId) { $feedId = Feeds::ROOT_GROUP_ID; } $currentFeed = $this->feeds->get($feedId); // get predessecors $this->view->parents = $this->feeds->listParents($feedId); if ($this->view->parents === null) { $this->view->parents = array(); // XXX error! } $this->view->feed = $currentFeed; $visibleFeeds = $this->getSubscriptions($user['id'], $currentFeed); $this->view->feeds = $visibleFeeds; $this->view->user = $user; }