adding a widget "add a person" on homepage, replacing the homepage menu

We use the new widget api to add a widget "add a person" on homepage. The homepage menu is deprecated.
This commit is contained in:
2016-09-23 12:28:26 +02:00
parent adbc59ec76
commit 38df9bb91d
5 changed files with 64 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
namespace Chill\PersonBundle\Widget;
use Chill\MainBundle\Templating\Widget\WidgetInterface;
/**
* Add a button "add a person"
*
* @author julien
*/
class AddAPersonWidget implements WidgetInterface
{
public function render(
\Twig_Environment $env,
$place,
array $context,
array $config) {
return $env->render("ChillPersonBundle:Widget:homepage_add_a_person.html.twig");
}
}