summaryrefslogtreecommitdiff
path: root/controllers/app.php
blob: 633433fcddda5a4905c3e15de38ae0791d1a3eb6 (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();
        }
    }
}