Create a controller for rendering menu

This commit is contained in:
2013-11-06 17:46:43 +01:00
parent 4e5775a9ac
commit 5393473c11
2 changed files with 22 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace CL\Chill\MainBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class MenuController extends Controller
{
public function writeMenuAction($menu, $layout, $activeRouteKey, array $args = array() )
{
return $this->render($layout, array(
'menu_composer' => $this->get('cl_chill_main_menu_composer'),
'menu' => $menu,
'args' => $args,
'activeRouteKey' => $activeRouteKey
));
}
}