{% extends '::Default/base.html.twig' %}
{% block SEO %}
<title> {{club.nameClub|title }} - {{team.category.category|capitalize}} - {{club.ligue.departement}} | Basket97 </title>
<meta name="description" content="Club {{club.nameClub|title }} - Découvrez l'effectif ainsi que l'ensemble des matchs et les résultats de la Catégorie {{team.category.category|capitalize}}" >
<meta property="og:title" content="{{club.nameClub|title }} - {{team.category.category|capitalize}} - {{club.ligue.departement}} Basket97" />
<meta property="og:type" content="Website" />
<meta property="og:description" content="Club {{club.nameClub|title }} - Découvrez l'effectif ainsi que l'ensemble des matchs et les résultats de la Catégorie {{team.category.category|capitalize}}" />
// line 4
echo "
\t<title> ";
// line 5
echo twig_escape_filter($this->env, twig_title_string_filter($this->env, $this->getAttribute(($context["club"] ?? $this->getContext($context, "club")), "nameClub", [])), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($this->getAttribute(($context["team"] ?? $this->getContext($context, "team")), "category", []), "category", [])), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["club"] ?? $this->getContext($context, "club")), "ligue", []), "departement", []), "html", null, true);
echo " | Basket97 </title>
{
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "FrontBundle:Clubs:index.html.twig"));
$this->parent = $this->loadTemplate("::Default/base.html.twig", "FrontBundle:Clubs:index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
* {@inheritdoc}
*/
public function render($name, array $parameters = [])
{
try {
return parent::render($name, $parameters);
} catch (Error $e) {
if ($name instanceof TemplateReference && !method_exists($e, 'setSourceContext')) {
try {
// try to get the real name of the template where the error occurred
$name = $e->getTemplateName();
* @final since version 3.4
*/
protected function render($view, array $parameters = [], Response $response = null)
{
if ($this->container->has('templating')) {
$content = $this->container->get('templating')->render($view, $parameters);
} elseif ($this->container->has('twig')) {
$content = $this->container->get('twig')->render($view, $parameters);
} else {
throw new \LogicException('You can not use the "render" method if the Templating Component or the Twig Bundle are not available. Try running "composer require symfony/twig-bundle".');
}
$class = [];
}
return $this->render('FrontBundle:Clubs:index.html.twig',
['club'=>$club,'players'=>$players,'team'=>$team,'coachs'=>$coachs,'games'=>$games,'class'=>$class,'partenaire'=>$partenaire,'saison'=>$saison]);
}
public function menuClubAction($slugclub)
{
$em=$this->getDoctrine()->getManager();
$this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS, $event);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = \call_user_func_array($controller, $arguments);
// view
if (!$response instanceof Response) {
$event = new GetResponseForControllerResultEvent($this, $request, $type, $response);
$this->dispatcher->dispatch(KernelEvents::VIEW, $event);
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
$request->headers->set('X-Php-Ob-Level', ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
//$kernel = new AppCache($kernel);
// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
//Request::enableHttpMethodParameterOverride();
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
No log messages
RuntimeError |
---|
Twig\Error\RuntimeError: Impossible to access an attribute ("nameClub") on a null variable. at src/FrontBundle/Resources/views/Clubs/index.html.twig:5 at Twig\Template->getAttribute(null, 'nameClub', array()) (var/cache/prod/twig/a7/a78541e278e73f6da43cb938d7056de930d9c3d9cd53add3d5142fe6ff32af0d.php:56) at __TwigTemplate_8b2b15bce752a9d8bf8e7c0dd6c19947c8c0f96eb5412b48b0dbf626166efa30->block_SEO(array('club' => null, 'players' => array(), 'team' => null, 'coachs' => array(), 'games' => array(), 'class' => array(), 'partenaire' => array(), 'saison' => object(Saison), 'app' => object(AppVariable)), array('SEO' => array(object(__TwigTemplate_8b2b15bce752a9d8bf8e7c0dd6c19947c8c0f96eb5412b48b0dbf626166efa30), 'block_SEO'), 'stylesheets' => array(object(__TwigTemplate_6dd7c93a87382e210154a97c2d187307b53d61ff445b1b4a4478bb9f7f3e17a2), 'block_stylesheets'), 'body' => array(object(__TwigTemplate_8b2b15bce752a9d8bf8e7c0dd6c19947c8c0f96eb5412b48b0dbf626166efa30), 'block_body'), 'javascripts' => array(object(__TwigTemplate_8b2b15bce752a9d8bf8e7c0dd6c19947c8c0f96eb5412b48b0dbf626166efa30), 'block_javascripts'))) (vendor/twig/twig/src/Template.php:216) at Twig\Template->displayBlock('SEO', array('club' => null, 'players' => array(), 'team' => null, 'coachs' => array(), 'games' => array(), 'class' => array(), 'partenaire' => array(), 'saison' => object(Saison), 'app' => object(AppVariable)), array('SEO' => array(object(__TwigTemplate_8b2b15bce752a9d8bf8e7c0dd6c19947c8c0f96eb5412b48b0dbf626166efa30), 'block_SEO'), 'stylesheets' => array(object(__TwigTemplate_6dd7c93a87382e210154a97c2d187307b53d61ff445b1b4a4478bb9f7f3e17a2), 'block_stylesheets'), 'body' => array(object(__TwigTemplate_8b2b15bce752a9d8bf8e7c0dd6c19947c8c0f96eb5412b48b0dbf626166efa30), 'block_body'), 'javascripts' => array(object(__TwigTemplate_8b2b15bce752a9d8bf8e7c0dd6c19947c8c0f96eb5412b48b0dbf626166efa30), 'block_javascripts'))) (var/cache/prod/twig/3b/3bc910a5659c628a3f8adb6d5130cc1d4e6c50bb9bd02e4e99f150a030a83760.php:59) at __TwigTemplate_6dd7c93a87382e210154a97c2d187307b53d61ff445b1b4a4478bb9f7f3e17a2->doDisplay(array('club' => null, 'players' => array(), 'team' => null, 'coachs' => array(), 'games' => array(), 'class' => array(), 'partenaire' => array(), 'saison' => object(Saison), 'app' => object(AppVariable)), array('SEO' => array(object(__TwigTemplate_8b2b15bce752a9d8bf8e7c0dd6c19947c8c0f96eb5412b48b0dbf626166efa30), 'block_SEO'), 'stylesheets' => array(object(__TwigTemplate_6dd7c93a87382e210154a97c2d187307b53d61ff445b1b4a4478bb9f7f3e17a2), 'block_stylesheets'), 'body' => array(object(__TwigTemplate_8b2b15bce752a9d8bf8e7c0dd6c19947c8c0f96eb5412b48b0dbf626166efa30), 'block_body'), 'javascripts' => array(object(__TwigTemplate_8b2b15bce752a9d8bf8e7c0dd6c19947c8c0f96eb5412b48b0dbf626166efa30), 'block_javascripts'))) (vendor/twig/twig/src/Template.php:455) at Twig\Template->displayWithErrorHandling(array('club' => null, 'players' => array(), 'team' => null, 'coachs' => array(), 'games' => array(), 'class' => array(), 'partenaire' => array(), 'saison' => object(Saison), 'app' => object(AppVariable)), array('SEO' => array(object(__TwigTemplate_8b2b15bce752a9d8bf8e7c0dd6c19947c8c0f96eb5412b48b0dbf626166efa30), 'block_SEO'), 'stylesheets' => array(object(__TwigTemplate_6dd7c93a87382e210154a97c2d187307b53d61ff445b1b4a4478bb9f7f3e17a2), 'block_stylesheets'), 'body' => array(object(__TwigTemplate_8b2b15bce752a9d8bf8e7c0dd6c19947c8c0f96eb5412b48b0dbf626166efa30), 'block_body'), 'javascripts' => array(object(__TwigTemplate_8b2b15bce752a9d8bf8e7c0dd6c19947c8c0f96eb5412b48b0dbf626166efa30), 'block_javascripts'))) (vendor/twig/twig/src/Template.php:422) at Twig\Template->display(array('club' => null, 'players' => array(), 'team' => null, 'coachs' => array(), 'games' => array(), 'class' => array(), 'partenaire' => array(), 'saison' => object(Saison), 'app' => object(AppVariable)), array('SEO' => array(object(__TwigTemplate_8b2b15bce752a9d8bf8e7c0dd6c19947c8c0f96eb5412b48b0dbf626166efa30), 'block_SEO'), 'body' => array(object(__TwigTemplate_8b2b15bce752a9d8bf8e7c0dd6c19947c8c0f96eb5412b48b0dbf626166efa30), 'block_body'), 'javascripts' => array(object(__TwigTemplate_8b2b15bce752a9d8bf8e7c0dd6c19947c8c0f96eb5412b48b0dbf626166efa30), 'block_javascripts'))) (var/cache/prod/twig/a7/a78541e278e73f6da43cb938d7056de930d9c3d9cd53add3d5142fe6ff32af0d.php:40) at __TwigTemplate_8b2b15bce752a9d8bf8e7c0dd6c19947c8c0f96eb5412b48b0dbf626166efa30->doDisplay(array('club' => null, 'players' => array(), 'team' => null, 'coachs' => array(), 'games' => array(), 'class' => array(), 'partenaire' => array(), 'saison' => object(Saison), 'app' => object(AppVariable)), array('SEO' => array(object(__TwigTemplate_8b2b15bce752a9d8bf8e7c0dd6c19947c8c0f96eb5412b48b0dbf626166efa30), 'block_SEO'), 'body' => array(object(__TwigTemplate_8b2b15bce752a9d8bf8e7c0dd6c19947c8c0f96eb5412b48b0dbf626166efa30), 'block_body'), 'javascripts' => array(object(__TwigTemplate_8b2b15bce752a9d8bf8e7c0dd6c19947c8c0f96eb5412b48b0dbf626166efa30), 'block_javascripts'))) (vendor/twig/twig/src/Template.php:455) at Twig\Template->displayWithErrorHandling(array('club' => null, 'players' => array(), 'team' => null, 'coachs' => array(), 'games' => array(), 'class' => array(), 'partenaire' => array(), 'saison' => object(Saison), 'app' => object(AppVariable)), array('SEO' => array(object(__TwigTemplate_8b2b15bce752a9d8bf8e7c0dd6c19947c8c0f96eb5412b48b0dbf626166efa30), 'block_SEO'), 'body' => array(object(__TwigTemplate_8b2b15bce752a9d8bf8e7c0dd6c19947c8c0f96eb5412b48b0dbf626166efa30), 'block_body'), 'javascripts' => array(object(__TwigTemplate_8b2b15bce752a9d8bf8e7c0dd6c19947c8c0f96eb5412b48b0dbf626166efa30), 'block_javascripts'))) (vendor/twig/twig/src/Template.php:422) at Twig\Template->display(array('club' => null, 'players' => array(), 'team' => null, 'coachs' => array(), 'games' => array(), 'class' => array(), 'partenaire' => array(), 'saison' => object(Saison))) (vendor/twig/twig/src/Template.php:434) at Twig\Template->render(array('club' => null, 'players' => array(), 'team' => null, 'coachs' => array(), 'games' => array(), 'class' => array(), 'partenaire' => array(), 'saison' => object(Saison))) (vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php:49) at Symfony\Bridge\Twig\TwigEngine->render('FrontBundle:Clubs:index.html.twig', array('club' => null, 'players' => array(), 'team' => null, 'coachs' => array(), 'games' => array(), 'class' => array(), 'partenaire' => array(), 'saison' => object(Saison))) (vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php:45) at Symfony\Bundle\TwigBundle\TwigEngine->render('FrontBundle:Clubs:index.html.twig', array('club' => null, 'players' => array(), 'team' => null, 'coachs' => array(), 'games' => array(), 'class' => array(), 'partenaire' => array(), 'saison' => object(Saison))) (vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php:284) at Symfony\Bundle\FrameworkBundle\Controller\Controller->render('FrontBundle:Clubs:index.html.twig', array('club' => null, 'players' => array(), 'team' => null, 'coachs' => array(), 'games' => array(), 'class' => array(), 'partenaire' => array(), 'saison' => object(Saison))) (src/FrontBundle/Controller/ClubsController.php:98) at FrontBundle\Controller\ClubsController->indexAction('sport%20guyanais') (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (web/app.php:20) |