-
Notifications
You must be signed in to change notification settings - Fork 145
Expand file tree
/
Copy pathDefaultController.php
More file actions
53 lines (44 loc) · 1.36 KB
/
DefaultController.php
File metadata and controls
53 lines (44 loc) · 1.36 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
namespace Avanzu\AdminThemeBundle\Controller;
use Avanzu\AdminThemeBundle\Form\FormDemoModelType;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
/**
* Class DefaultController
*
* @package Avanzu\AdminThemeBundle\Controller
*/
class DefaultController extends Controller
{
/**
* @Template()
*/
public function indexAction()
{
return $this->render('@AvanzuAdminTheme/Default/index.html.twig');
}
/**
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dashboardAction() {
return $this->render('@AvanzuAdminTheme/Default/index.html.twig');
}
/**
* @return \Symfony\Component\HttpFoundation\Response
*/
public function uiGeneralAction() {
return $this->render('@AvanzuAdminTheme/Default/index.html.twig');
}
public function uiIconsAction() {
return $this->render('@AvanzuAdminTheme/Default/index.html.twig');
}
public function formAction() {
$form = $this->createForm(FormDemoModelType::class);
return $this->render('@AvanzuAdminTheme/Default/form.html.twig', [
'form' => $form->createView(),
]);
}
public function loginAction() {
return $this->render('@AvanzuAdminTheme/Default/login.html.twig');
}
}