function action_index() { $announcements = EntityQuery::create(Announcement::orm())->orderBy(OrderBy::desc('date'))->setLimit(self::LIMIT_ENTRIES_PER_PAGE)->setOffset(0)->getList(); $release = PhoebiusRelease::query()->orderBy(OrderBy::desc('date'))->setLimit(1)->getEntity(); $this->getModel()->append(array('release' => $release, 'announcements' => $announcements, 'breadScrumbs' => array())); return 'index'; }
function action_releases() { $releases = PhoebiusRelease::query()->orderBy(OrderBy::desc('date'))->getList(); $this->getModel()->append(array('releases' => $releases)); return 'admin/releases'; }