var contador = 2;
var searching = 0;
const offset = 455;
var loadMore = function () {
if (contador <={{totalRegi}} ) {
var $url = '{{ path('aviatur_content_airline_filtered', { 'page':'2', 'active':active, 'content':contentType, 'type':typeArticle }) }}';
$url = $url.replace('2', contador);
jQuery("#enlaceajax").css("display", "none");
_loadSpinner("pagination");
jQuery("#pagination").css("background-size", "contain");
searching = 1;
// line 361
echo twig_escape_filter($this->env, (isset($context["totalRegi"]) || array_key_exists("totalRegi", $context) ? $context["totalRegi"] : (function () { throw new RuntimeError('Variable "totalRegi" does not exist.', 361, $this->source); })()), "html", null, true);
echo " ) {
var \$url = '";
// line 362
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("aviatur_content_airline_filtered", ["page" => "2", "active" => (isset($context["active"]) || array_key_exists("active", $context) ? $context["active"] : (function () { throw new RuntimeError('Variable "active" does not exist.', 362, $this->source); })()), "content" => (isset($context["contentType"]) || array_key_exists("contentType", $context) ? $context["contentType"] : (function () { throw new RuntimeError('Variable "contentType" does not exist.', 362, $this->source); })()), "type" => (isset($context["typeArticle"]) || array_key_exists("typeArticle", $context) ? $context["typeArticle"] : (function () { throw new RuntimeError('Variable "typeArticle" does not exist.', 362, $this->source); })())]), "html", null, true);
echo "';
\$url = \$url.replace('2', contador);
jQuery(\"#enlaceajax\").css(\"display\", \"none\");
_loadSpinner(\"pagination\");
jQuery(\"#pagination\").css(\"background-size\", \"contain\");
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();
if ((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.', 4, $this->source); })()), "session", [], "any", false, false, false, 4), "has", [0 => "operatorId"], "method", false, false, false, 4) != 1)) {
// line 5
$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.', 5, $this->source); })()), "request", [], "any", false, false, false, 5), "getSchemeAndHttpHost", [], "method", false, false, false, 5);
}
// 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();
}
$cantdatos = count($actualArticles);
$cantRegis = 10;
$totalRegi = ceil($cantdatos / $cantRegis);
$pagination = $paginator->paginate($actualArticles, $fullRequest->query->get('page', $page), $cantRegis);
return $this->render($twigFolder->twigExists($urlReturn), ['agencyId' => $agencyId, 'articulo' => $pagination, 'page' => $page, 'active' => $active, 'totalRegi' => $totalRegi, 'ajaxUrl' => $requestUrl]);
}
}
}
public function listAction(Request $request, SessionInterface $session, AviaturErrorHandler $errorHandler, TwigFolder $twigFolder, AuthorizationCheckerInterface $authorizationChecker, PaginatorInterface $paginator, $page, $active, $type)
$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: Variable "typeArticle" does not exist. at src/Aviatur/TwigBundle/Resources/views/aviatur/Flux/Content/Content/index_promo.html.twig:362 at __TwigTemplate_e9ddc09955c38902a74496a8abb6cedaa3fc08ff42d65eddb3b293288fc23144->{closure}() (var/cache/prod/twig/6c/6c40f47b45063c698a2e6154664d8f02dd83d74c33516a03e779c263dbc33806.php:1023) at __TwigTemplate_e9ddc09955c38902a74496a8abb6cedaa3fc08ff42d65eddb3b293288fc23144->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/6c/6c40f47b45063c698a2e6154664d8f02dd83d74c33516a03e779c263dbc33806.php:60) at __TwigTemplate_e9ddc09955c38902a74496a8abb6cedaa3fc08ff42d65eddb3b293288fc23144->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:151) at Aviatur\ContentBundle\Controller\ContentController->indexAction() (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) |