Passed
Push — master ( f1de38...568d8b )
by Julito
11:00
created

DefaultController::indexAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\ThemeBundle\Controller;
5
6
use Chamilo\ThemeBundle\Form\FormDemoModelType;
7
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
8
9
/**
10
 * Class DefaultController.
11
 *
12
 * @package Chamilo\ThemeBundle\Controller
13
 */
14
class DefaultController extends AbstractController
15
{
16
    /**
17
     * @return \Symfony\Component\HttpFoundation\Response
18
     */
19
    public function dashboardAction()
20
    {
21
        return $this->render('ChamiloThemeBundle:Default:index.html.twig');
22
    }
23
24
    /**
25
     * @return \Symfony\Component\HttpFoundation\Response
26
     */
27
    public function uiGeneralAction()
28
    {
29
        return $this->render('ChamiloThemeBundle:Default:index.html.twig');
30
    }
31
32
    public function uiIconsAction()
33
    {
34
        return $this->render('ChamiloThemeBundle:Default:index.html.twig');
35
    }
36
37
    public function formAction()
38
    {
39
        $form = $this->createForm(new FormDemoModelType());
40
41
        return $this->render('ChamiloThemeBundle:Default:form.html.twig', [
42
                'form' => $form->createView(),
43
            ]);
44
    }
45
}
46