send rendering of menu to devoted controller

This commit is contained in:
2013-11-06 17:46:10 +01:00
parent 3baf7acfb5
commit b89c5e3de4
5 changed files with 13 additions and 21 deletions

View File

@@ -1,13 +0,0 @@
<?php
namespace CL\Chill\PersonBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class DefaultController extends Controller
{
public function indexAction($name)
{
return $this->render('CLChillPersonBundle:Default:index.html.twig', array('name' => $name));
}
}

View File

@@ -16,7 +16,7 @@ class PersonController extends Controller {
}
return $this->render('CLChillPersonBundle:Person:view.html.twig',
array("person" => $person, 'menu_composer' => $this->get('menu_composer'))
array("person" => $person)
);
}