if ($this->extensions['SunCat\MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile()) {
echo "background-size: cover;";
}
// line 22
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackground-image:url('";
if ((twig_get_attribute($this->env, $this->source, (isset($context["courses"]) || array_key_exists("courses", $context) ? $context["courses"] : (function () { throw new RuntimeError('Variable "courses" does not exist.', 22, $this->source); })()), 0, [], "array", false, false, false, 22) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["courses"]) || array_key_exists("courses", $context) ? $context["courses"] : (function () { throw new RuntimeError('Variable "courses" does not exist.', 22, $this->source); })()), 0, [], "array", false, false, false, 22), "headerImage", [], "any", false, false, false, 22))) {
echo twig_escape_filter($this->env, (isset($context["site_url"]) || array_key_exists("site_url", $context) ? $context["site_url"] : (function () { throw new RuntimeError('Variable "site_url" does not exist.', 22, $this->source); })()), "html", null, true);
echo "/";
echo twig_escape_filter($this->env, (isset($context["path_upload_img"]) || array_key_exists("path_upload_img", $context) ? $context["path_upload_img"] : (function () { throw new RuntimeError('Variable "path_upload_img" does not exist.', 22, $this->source); })()), "html", null, true);
echo "/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["courses"]) || array_key_exists("courses", $context) ? $context["courses"] : (function () { throw new RuntimeError('Variable "courses" does not exist.', 22, $this->source); })()), 0, [], "array", false, false, false, 22), "headerImage", [], "any", false, false, false, 22), "html", null, true);
$macros = $this->macros;
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/tours.html.twig"));
$this->parent = $this->loadTemplate("Front/base.html.twig", "Front/tours.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
if ($this->container->has('templating') && $this->container->get('templating')->supports($view)) {
@trigger_error('Using the "templating" service is deprecated since version 4.3 and will be removed in 5.0; use Twig instead.', \E_USER_DEPRECATED);
$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".');
}
if (null === $response) {
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
No log messages
RuntimeError |
---|
Twig\Error\RuntimeError: Key "0" does not exist as the array is empty. at /var/www/PHP/repare/intripid-web/templates/Front/tours.html.twig:22 at twig_get_attribute() (var/cache/prod/twig/86/860e1485e55b73c01b36340ca0ed8c82979fc3768e64f9f48a4d97af99770dc7.php:138) at __TwigTemplate_bae317abab04f8cd0c2d0b836b76fddde1747803d5cb4d2f80a7d9aa1b038903->block_body() (vendor/twig/twig/src/Template.php:182) at Twig\Template->displayBlock() (var/cache/prod/twig/d8/d8961b82b2bcea31f9242ebfc57c8d7bb44139534541a5ad74f94d0f8b5ffb24.php:236) at __TwigTemplate_44b1368f443753fa4c81ddd65cbaebdaf1e04b5848f2ce3140f671174a981f84->doDisplay() (vendor/twig/twig/src/Template.php:405) at Twig\Template->displayWithErrorHandling() (vendor/twig/twig/src/Template.php:378) at Twig\Template->display() (var/cache/prod/twig/86/860e1485e55b73c01b36340ca0ed8c82979fc3768e64f9f48a4d97af99770dc7.php:49) at __TwigTemplate_bae317abab04f8cd0c2d0b836b76fddde1747803d5cb4d2f80a7d9aa1b038903->doDisplay() (vendor/twig/twig/src/Template.php:405) at Twig\Template->displayWithErrorHandling() (vendor/twig/twig/src/Template.php:378) at Twig\Template->display() (vendor/twig/twig/src/Template.php:390) at Twig\Template->render() (vendor/twig/twig/src/TemplateWrapper.php:45) at Twig\TemplateWrapper->render() (vendor/twig/twig/src/Environment.php:318) at Twig\Environment->render() (vendor/symfony/framework-bundle/Controller/ControllerTrait.php:235) at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render() (src/Controller/FrontController.php:726) at App\Controller\FrontController->toursAction() (vendor/symfony/http-kernel/HttpKernel.php:169) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:81) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:201) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:25) |