chill-bundles/Widget/AddAPersonWidget.php
Julien Fastré 38df9bb91d 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.
2016-09-23 12:29:46 +02:00

29 lines
641 B
PHP

<?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");
}
}