Example #1
0
 function index_action($group = '')
 {
     $mod = new \firegit\app\mod\git\Reposite();
     if (!$group) {
         $groups = $mod->getUserGroups($this->getData('user'));
         $this->response->set(array('groups' => $groups))->setView('group/index.phtml');
         return;
     }
     $repos = $mod->getUserGroupRepos($this->getData('user'), $group);
     $this->response->set(array('repos' => $repos, 'group' => $group, 'git' => array('group' => $group), 'prefix' => '/' . $group . '/'));
     $this->setView('group/group.phtml');
 }