{% if nom_categorie is defined and nom_categorie %}
<link href="{{ url_module }}/annonces/suivre/rss/idcategorie/{{ idcategorie }}" rel="self"/>
{% else %}
<link href="{{ url_module }}/annonces/suivre/rss" rel="self"/>
{% endif %}
<updated>{{ updated }}</updated>
<author>
<name>theatre-contemporain.net</name>
</author>
<id>urn:md5:{{ md5 }}</id>
echo "/annonces/suivre/rss\" rel=\"self\"/>
";
}
// line 13
echo " <updated>";
echo twig_escape_filter($this->env, (isset($context["updated"]) || array_key_exists("updated", $context) ? $context["updated"] : (function () { throw new RuntimeError('Variable "updated" does not exist.', 13, $this->source); })()), "html", null, true);
echo "</updated>
<author>
<name>theatre-contemporain.net</name>
</author>
<id>urn:md5:";
}
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
);
}
// passer les annonces au templates
$this->context['view']->annonces = $annonces_list;
}
$response = $this->view('annonces/rss.html.twig');
$response->headers->set('Content-Type', 'xml');
$response->setCharset('utf-8');
return $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) {
$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 "updated" does not exist. at /home/web/theatre-contemporain.net/dev/templates/annonces/rss.html.twig:13 at __TwigTemplate_5bcc906896d433400fff5c5fead696d0b83af0de482393903f35504022e5b550->{closure}() (/home/web/theatre-contemporain.net/dev/var/cache/dev/twig/cd/cd01b9228114f8802affe31ce36c4312d0fcc49dff5946bd3e7167e1f3602e40.php:81) at __TwigTemplate_5bcc906896d433400fff5c5fead696d0b83af0de482393903f35504022e5b550->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:324) at App\Controller\AnnoncesController->action_rss() (/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) |