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

namespace Controller;

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