summaryrefslogtreecommitdiff
path: root/controllers/app.php
diff options
context:
space:
mode:
authorFrédéric Guillot <contact@fredericguillot.com>2014-01-25 14:56:02 -0500
committerFrédéric Guillot <contact@fredericguillot.com>2014-01-25 14:56:02 -0500
commit9383a15af699ede77142d040b65118e15754a2ca (patch)
treeb550b5adf5bcf8f5a8793c188cc5630f26a27d49 /controllers/app.php
First commit
Diffstat (limited to 'controllers/app.php')
-rw-r--r--controllers/app.php16
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();
+ }
+ }
+}