<div class="tc-block-body">
<form method="post" action="/annonces/{{ url_clean }}/" id="filtre">
{% if formAsideSearch.area is defined and formAsideSearch.area %}
<label for="">Par région</label>
{{ form_widget(formAsideSearch.area) }}
{% endif %}
{% if formAsideSearch.cp is defined and formAsideSearch.cp %}
// line 1
echo "<div class=\"tc-block-body\">
<form method=\"post\" action=\"/annonces/";
// line 2
echo twig_escape_filter($this->env, (isset($context["url_clean"]) || array_key_exists("url_clean", $context) ? $context["url_clean"] : (function () { throw new RuntimeError('Variable "url_clean" does not exist.', 2, $this->source); })()), "html", null, true);
echo "/\" id=\"filtre\">
";
// line 3
if ((twig_get_attribute($this->env, $this->source, ($context["formAsideSearch"] ?? null), "area", [], "any", true, true, false, 3) && twig_get_attribute($this->env, $this->source, (isset($context["formAsideSearch"]) || array_key_exists("formAsideSearch", $context) ? $context["formAsideSearch"] : (function () { throw new RuntimeError('Variable "formAsideSearch" does not exist.', 3, $this->source); })()), "area", [], "any", false, false, false, 3))) {
// line 4
}
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 55
if ((twig_get_attribute($this->env, $this->source, $context["aside_content"], "html", [], "any", false, false, false, 55) != "error")) {
// line 56
echo " ";
$this->loadTemplate((("" . twig_get_attribute($this->env, $this->source, $context["aside_content"], "html", [], "any", false, false, false, 56)) . ".twig"), "includes/aside/aside_basic.inc.html.twig", 56)->display($context);
// line 57
echo " ";
} else {
// line 58
echo " -- erreur lors du chargement ! -- ";
}
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 ((array_key_exists("aside", $context) && (isset($context["aside"]) || array_key_exists("aside", $context) ? $context["aside"] : (function () { throw new RuntimeError('Variable "aside" does not exist.', 1, $this->source); })()))) {
// line 2
echo " <aside id=\"tc-aside\" class=\"tc-desktop-1_3 tc-phone-1_1\">
";
// line 3
$this->loadTemplate("/includes/aside/aside_basic.inc.html.twig", "includes/footer.inc.html.twig", 3)->display($context);
// line 4
echo " </aside>
";
}
// line 6
}
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 114
if (( !array_key_exists("iframe_style", $context) || !(isset($context["iframe_style"]) || array_key_exists("iframe_style", $context) ? $context["iframe_style"] : (function () { throw new RuntimeError('Variable "iframe_style" does not exist.', 114, $this->source); })()))) {
// line 115
echo " ";
$this->loadTemplate("/includes/footer.inc.html.twig", "templates.html.twig", 115)->display($context);
// line 116
echo " ";
}
// line 117
echo "
}
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();
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "annonces/annonce_normal.inc.html.twig"));
$this->parent = $this->loadTemplate("templates.html.twig", "annonces/annonce_normal.inc.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__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();
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "annonces/annonce.html.twig"));
// line 1
$this->loadTemplate((("annonces/annonce_" . (isset($context["typeaffichage"]) || array_key_exists("typeaffichage", $context) ? $context["typeaffichage"] : (function () { throw new RuntimeError('Variable "typeaffichage" does not exist.', 1, $this->source); })())) . ".inc.html.twig"), "annonces/annonce.html.twig", 1)->display($context);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__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();
}
}
return true;
}
return $this->render($template,
$view
);
}
// style css et js
$this->view->style_more[] = 'annonces';
$this->view->js_more[] = 'jquery.qtip.min.js';
return $this->view('annonces/annonce.html.twig');
}
/**
* @Route("/annonces/outils/recherche", name="annonces_outils_recherche")
*/
$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;
}
}
Debug::enable();
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
RuntimeError
|
---|
Twig\Error\RuntimeError: Variable "url_clean" does not exist. at /home/web/theatre-contemporain.net/dev/templates/includes/aside/annonces/annonce_categorie.html.twig:2 at __TwigTemplate_ce72f0c4d7f157a57b530d76146dd9dc9f7d2080670d89135e9bdacdcebb002a->{closure}() (/home/web/theatre-contemporain.net/dev/var/cache/dev/twig/cf/cf5a788e1f336062be181f6952c90182f7e86ddba2c6b2d2224546e134a6f46f.php:46) at __TwigTemplate_ce72f0c4d7f157a57b530d76146dd9dc9f7d2080670d89135e9bdacdcebb002a->doDisplay() (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:405) at Twig\Template->displayWithErrorHandling() (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:378) at Twig\Template->display() (/home/web/theatre-contemporain.net/dev/var/cache/dev/twig/8c/8c6c4e4aad20c775638bf881a6a587dcbde8ef9677be08ce1a5999a1d6f2f0e7.php:200) at __TwigTemplate_94a629ed9c671204fc09b022066031ba83e84d6b69fbda2cba7af5c1f05f06d3->doDisplay() (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:405) at Twig\Template->displayWithErrorHandling() (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:378) at Twig\Template->display() (/home/web/theatre-contemporain.net/dev/var/cache/dev/twig/c2/c27a54ca83fbd239d0847eff3e657561bed2168eed821b11786d7a1c96a654a5.php:48) at __TwigTemplate_4099258c2396c4b6b7922b4c0d2a47d7f4a5fa3472d746abf0e9cc53a0b1ebe4->doDisplay() (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:405) at Twig\Template->displayWithErrorHandling() (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:378) at Twig\Template->display() (/home/web/theatre-contemporain.net/dev/var/cache/dev/twig/c6/c6034497f4006f9dc070865116804ccb36d383666ed093d23104118f27db7edc.php:185) at __TwigTemplate_1590eee5e6149969fcf2209e20425a07e3f8fecba8db09552f1020e0ada36dc0->doDisplay() (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:405) at Twig\Template->displayWithErrorHandling() (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:378) at Twig\Template->display() (/home/web/theatre-contemporain.net/dev/var/cache/dev/twig/3d/3de98b6f56103a662183a53d21f5f0e70b8878b073e70a970328baecad3f320e.php:49) at __TwigTemplate_5943fc72675f879157a2566c5335cff1dbc400eb8ee07debf95545f4d8d58b9b->doDisplay() (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:405) at Twig\Template->displayWithErrorHandling() (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:378) at Twig\Template->display() (/home/web/theatre-contemporain.net/dev/var/cache/dev/twig/7c/7c15742a6a2e91893d87639ff999b325ca6a8b934313e6c466397afdcf2e5224.php:43) at __TwigTemplate_ddc5ce47df52ccc0dec7d2f63d5cf768cbc6dd14e47d326996807be32a870e21->doDisplay() (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:405) at Twig\Template->displayWithErrorHandling() (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:378) at Twig\Template->display() (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:390) at Twig\Template->render() (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/TemplateWrapper.php:45) at Twig\TemplateWrapper->render() (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Environment.php:318) at Twig\Environment->render() (/home/web/theatre-contemporain.net/dev/vendor/symfony/framework-bundle/Controller/AbstractController.php:258) at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->renderView() (/home/web/theatre-contemporain.net/dev/vendor/symfony/framework-bundle/Controller/AbstractController.php:266) at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render() (/home/web/theatre-contemporain.net/dev/src/ClassTheatre/TheatreController.php:229) at App\ClassTheatre\TheatreController->view() (/home/web/theatre-contemporain.net/dev/src/Controller/AnnoncesController.php:1624) at App\Controller\AnnoncesController->annonce() (/home/web/theatre-contemporain.net/dev/vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (/home/web/theatre-contemporain.net/dev/vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (/home/web/theatre-contemporain.net/dev/vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (/home/web/theatre-contemporain.net/dev/public/index.php:20) |