summaryrefslogtreecommitdiff
path: root/controllers/app.php
blob: e72ac9d0fc50d4a8850083e8a8b8628b40504ffe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

namespace Controller;

require_once __DIR__.'/base.php';

class App extends Base
{
    public function index()
    {
        if ($this->project->countByStatus(\Model\Project::ACTIVE)) {
            $this->response->redirect('?controller=board');
        }
        else {
            $this->redirectNoProject();
        }
    }
}