{% if app.user != "" and ( is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_DELETE_' ~ app.session.get('agencyId')) or is_granted('ROLE_SUPER_ADMIN') ) %}
<a href="{{ path('aviatur_edit_homepromo_delete', {id: promos.id, promoType: promos.promoType}) }}">BORRAR</a>
{% endif %}
<figure class="promo-effect">
<div style="height: 255px;">
<img src="/version/{{ promos.date['date']| date('U') }}/{{ imageLink }}" alt="Vuelos a {{promos.city}}" title="Vuelos a {{promos.city}}"/>
</div>
<figcaption>
<h3><span>{{promos.city}}</span></h3>
<p>Desde {{promos.price}}<br> Ida y Regreso</p>
<a href="{{promos.url}}"></a>
// line 136
echo " <figure class=\"promo-effect\">
<div style=\"height: 255px;\">
<img src=\"/version/";
// line 138
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["promos"], "date", [], "any", false, false, false, 138), "date", [], "array", false, false, false, 138), "U"), "html", null, true);
echo "/";
echo twig_escape_filter($this->env, (isset($context["imageLink"]) || array_key_exists("imageLink", $context) ? $context["imageLink"] : (function () { throw new RuntimeError('Variable "imageLink" does not exist.', 138, $this->source); })()), "html", null, true);
echo "\" alt=\"Vuelos a ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["promos"], "city", [], "any", false, false, false, 138), "html", null, true);
echo "\" title=\"Vuelos a ";
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
// line 306
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["articulo"]) || array_key_exists("articulo", $context) ? $context["articulo"] : (function () { throw new RuntimeError('Variable "articulo" does not exist.', 306, $this->source); })()), "url", [], "any", false, false, false, 306) == "tiquetes-baratos")) {
// line 307
echo " ";
$this->loadTemplate($this->extensions['Aviatur\TwigBundle\Twig\Extension\FileExtension']->twigExists((("@AviaturTwig/" . twig_get_attribute($this->env, $this->source, (isset($context["agency_folder"]) || array_key_exists("agency_folder", $context) ? $context["agency_folder"] : (function () { throw new RuntimeError('Variable "agency_folder" does not exist.', 307, $this->source); })()), "twigFlux", [], "method", false, false, false, 307)) . "/Content/Content/promoTickets.html.twig")), "@AviaturTwig/aviatur/Flux/Content/Content/view.html.twig", 307)->display(twig_array_merge($context, ["agencyFolder" => (isset($context["agencyFolder"]) || array_key_exists("agencyFolder", $context) ? $context["agencyFolder"] : (function () { throw new RuntimeError('Variable "agencyFolder" does not exist.', 307, $this->source); })())]));
// line 308
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["articulo"]) || array_key_exists("articulo", $context) ? $context["articulo"] : (function () { throw new RuntimeError('Variable "articulo" does not exist.', 308, $this->source); })()), "url", [], "any", false, false, false, 308) == "mapa-oficinas")) {
// line 309
echo " ";
throw new \LogicException('A block must be a method on a \Twig\Template instance.');
}
if (null !== $template) {
try {
$template->$block($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($template->getSourceContext());
}
// line 117
echo "\t<div class=\"page__body\">
\t\t<div class=\"ajax-loader spinOverlay sp-offset--big js-loadingChangeCoin\" style=\"display: none;\"></div>
\t\t";
// line 119
$this->displayBlock('body', $context, $blocks);
// line 120
echo "\t\t";
// line 129
echo "
<div class=\"help-call-section\">
throw new \LogicException('A block must be a method on a \Twig\Template instance.');
}
if (null !== $template) {
try {
$template->$block($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($template->getSourceContext());
}
$this->displayBlock('overlay', $context, $blocks);
// line 693
echo "
";
// line 694
$this->displayBlock('base_content', $context, $blocks);
// line 725
echo "
";
// line 726
$this->displayBlock('javascripts', $context, $blocks);
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
// line 19
if ($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile()) {
}
}
// line 1
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
$context["host"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 9, $this->source); })()), "request", [], "any", false, false, false, 9), "getSchemeAndHttpHost", [], "method", false, false, false, 9);
}
// line 11
$context["contentInfo"] = $this->extensions['Aviatur\TwigBundle\Twig\Extension\JsonDecode']->jsonDecode(twig_get_attribute($this->env, $this->source, (isset($context["articulo"]) || array_key_exists("articulo", $context) ? $context["articulo"] : (function () { throw new RuntimeError('Variable "articulo" does not exist.', 11, $this->source); })()), "description", [], "any", false, false, false, 11), true);
// line 1
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
*/
public function render(array $context = []): string
{
// using func_get_args() allows to not expose the blocks argument
// as it should only be used by internal code
return $this->template->render($context, \func_get_args()[1] ?? []);
}
/**
* Displays the template.
*
* @throws SyntaxError When an error occurred during compilation
* @throws RuntimeError When an error occurred during rendering
*/
public function render($name, array $context = [])
{
return $this->load($name)->render($context);
}
/**
* Displays a template.
*
{
if (!$this->container->has('twig')) {
throw new \LogicException('You cannot use the "renderView" method if the Twig Bundle is not available. Try running "composer require symfony/twig-bundle".');
}
return $this->container->get('twig')->render($view, $parameters);
}
/**
* Renders a view.
*/
/**
* Renders a view.
*/
protected function render(string $view, array $parameters = [], Response $response = null): Response
{
$content = $this->renderView($view, $parameters);
if (null === $response) {
$response = new Response();
}
$cookieArray = [];
foreach ($description as $key => $value) {
$cookieArray[$key] = $value;
}
return $this->render($twigFolder->twigExists('@AviaturTwig/'.$agencyFolder.'/Content/Content/view.html.twig'), ['articulo' => $articulo[0], 'cookieLastSearch' => $cookieArray]);
}
} else {
$cookieArray = [];
foreach ($description as $key => $value) {
$cookieArray[$key] = $value;
$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) {
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
Request::setTrustedHosts([$trustedHosts]);
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
No log messages
RuntimeError
|
---|
Twig\Error\RuntimeError: Impossible to access a key ("date") on a string variable ("2018-12-11T08:35:46-05:00"). at src/Aviatur/TwigBundle/Resources/views/aviatur/Flux/Content/Content/promoTickets.html.twig:138 at twig_get_attribute() (var/cache/prod/twig/d2/d21c3331f21c13a2d123b3d14e8bc18af93644c2375262a2645379f5b02eeffd.php:336) at __TwigTemplate_86f4b050422d1abef5fbcff62a68d9634b80984b5e9f66c5833ce684e355c6c5->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/bb/bb1c89c630cdc3fe0c011de4da21051651d13467efdbdfe5339e88da99053e0f.php:691) at __TwigTemplate_0836dfdf322c257a479fbd7dde9f696ebdfc6efc3969253bd1ceff1960c63438->block_body() (vendor/twig/twig/src/Template.php:182) at Twig\Template->displayBlock() (var/cache/prod/twig/b7/b71fa889d3aadcb0b298b107d1949a48616715a84212eca7f7f134e84fa76e54.php:213) at __TwigTemplate_2316833c99a978109ad7176d55156d40173c2ac3de936d8ae36612f42015da36->block_base_content() (vendor/twig/twig/src/Template.php:182) at Twig\Template->displayBlock() (var/cache/prod/twig/a9/a913b5e5bee73232b12cb4964b2470ce872a6c818f06f1486f846655a1c0ac77.php:835) at __TwigTemplate_084ed6ba10b7017b5682857e1babd70e194be24d8061b69f2e5be539c1eb6e1a->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/b7/b71fa889d3aadcb0b298b107d1949a48616715a84212eca7f7f134e84fa76e54.php:62) at __TwigTemplate_2316833c99a978109ad7176d55156d40173c2ac3de936d8ae36612f42015da36->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/bb/bb1c89c630cdc3fe0c011de4da21051651d13467efdbdfe5339e88da99053e0f.php:70) at __TwigTemplate_0836dfdf322c257a479fbd7dde9f696ebdfc6efc3969253bd1ceff1960c63438->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/AbstractController.php:258) at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->renderView() (vendor/symfony/framework-bundle/Controller/AbstractController.php:266) at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render() (src/Aviatur/ContentBundle/Controller/ContentController.php:1621) at Aviatur\ContentBundle\Controller\ContentController->viewAction() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (web/index.php:24) |