summaryrefslogtreecommitdiff
path: root/app/Controller/DashboardController.php
blob: ef7d877219831ca22a2256eeee16b881c9eda5d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

namespace Kanboard\Controller;

/**
 * Dashboard Controller
 *
 * @package  Kanboard\Controller
 * @author   Frederic Guillot
 */
class DashboardController extends BaseController
{
    /**
     * Dashboard overview
     *
     * @access public
     */
    public function show()
    {
        $user = $this->getUser();

        $this->response->html($this->helper->layout->app('dashboard/show', array(
            'title'   => t('Dashboard for %s', $this->helper->user->getFullname($user)),
            'user'    => $user,
            'results' => $this->dashboardPagination->getOverview($user['id']),
        )));
    }
}