From e6f547abcfe684658a7498391db72d13b6aa7d9a Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 20 Sep 2015 18:24:15 -0400 Subject: Move timetable to a plugin Plugin repository: https://github.com/kanboard/plugin-timetable --- app/Controller/Timetable.php | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 app/Controller/Timetable.php (limited to 'app/Controller/Timetable.php') diff --git a/app/Controller/Timetable.php b/app/Controller/Timetable.php deleted file mode 100644 index 65edb44c..00000000 --- a/app/Controller/Timetable.php +++ /dev/null @@ -1,39 +0,0 @@ -getUser(); - $from = $this->request->getStringParam('from', date('Y-m-d')); - $to = $this->request->getStringParam('to', date('Y-m-d', strtotime('next week'))); - $timetable = $this->timetable->calculate($user['id'], new DateTime($from), new DateTime($to)); - - $this->response->html($this->layout('timetable/index', array( - 'user' => $user, - 'timetable' => $timetable, - 'values' => array( - 'from' => $from, - 'to' => $to, - 'controller' => 'timetable', - 'action' => 'index', - 'user_id' => $user['id'], - ), - ))); - } -} -- cgit v1.2.3