diff options
Diffstat (limited to 'controllers/app.php')
-rw-r--r-- | controllers/app.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/controllers/app.php b/controllers/app.php new file mode 100644 index 00000000..981abbbe --- /dev/null +++ b/controllers/app.php @@ -0,0 +1,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(); + } + } +} |