mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 16:43:48 +00:00
add admin section (2/2)
This commit is contained in:
28
Controller/AdminController.php
Normal file
28
Controller/AdminController.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace CL\Chill\MainBundle\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author julien.fastre@champs-libres.coop
|
||||
*/
|
||||
class AdminController extends Controller {
|
||||
|
||||
public function indexAction($menu = 'admin',
|
||||
$header_title = 'views.Main.admin.index.header_title',
|
||||
$page_title = 'views.Main.admin.index.page_title') {
|
||||
|
||||
|
||||
return $this->render('CLChillMainBundle:Admin:index.html.twig', array(
|
||||
'menu_composer' => $this->get('cl_chill_main_menu_composer'),
|
||||
'menu' => $menu,
|
||||
'header_title' => $header_title,
|
||||
'page_title' => $page_title,
|
||||
'args' => array()
|
||||
));
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user