<div class="infos-app" data-sort="{{ child.id }}" style="margin-top: 30px;">
{{ child.translate.content|raw }}
</div>
{% endfor %}
{% else %}
<div data-sort="{% if category.parent %}{{ category.parent.id }}{% endif %}" class="col-xl-3 col-lg-4 col-sm-6 col-12">
<div class="blocCategory" data-link>
<div class="card h-100">
<div class="card-body">
<div class="card-title-group">
{% if category.parent %}
// line 117
echo " ";
} else {
// line 118
echo " <div data-sort=\"";
if (twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 118, $this->source); })()), "parent", [], "any", false, false, false, 118)) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 118, $this->source); })()), "parent", [], "any", false, false, false, 118), "id", [], "any", false, false, false, 118), "html", null, true);
}
echo "\" class=\"col-xl-3 col-lg-4 col-sm-6 col-12\">
<div class=\"blocCategory\" data-link>
<div class=\"card h-100\">
// line 2
$macros["macro"] = $this->macros["macro"] = $this->loadTemplate("app/_inc/macros.html.twig", "app/applications/show.html.twig", 2)->unwrap();
// line 1
$this->parent = $this->loadTemplate("base.html.twig", "app/applications/show.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
* @final since version 3.4
*/
protected function render($view, array $parameters = [], Response $response = null)
{
if ($this->container->has('templating')) {
$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".');
}
return $this->render('app/applications/show.html.twig', [
'application' => $application,
'parentCategories'=>$list,
'subcat'=> $subcat,
]);
}
/**
* @Route("/article/society/{id}/{slug}", name="society_show", requirements={"_locale" = "en|fr|de|cn"}, options={"sitemap": true, "priority": 0.7, "changefreq": "yearly"})
$this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS, $event);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = \call_user_func_array($controller, $arguments);
// view
if (!$response instanceof Response) {
$event = new GetResponseForControllerResultEvent($this, $request, $type, $response);
$this->dispatcher->dispatch(KernelEvents::VIEW, $event);
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
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: Variable "category" does not exist. at app/Resources/views/app/applications/show.html.twig:118 at __TwigTemplate_784e7474c77e017ff155b4e655a7ab5bb2e90ab54f6ad2bd74821575abeec667->{closure}() (var/cache/prod/twig/41/413a08040f133a781097b7fa1672bcf6b71222c52bd6850fb3c230af58847d91.php:337) at __TwigTemplate_784e7474c77e017ff155b4e655a7ab5bb2e90ab54f6ad2bd74821575abeec667->block_content() (vendor/twig/twig/src/Template.php:182) at Twig\Template->displayBlock() (var/cache/prod/twig/f6/f646097a49ac1d3ef541ed4068a9089ca462c493607e011586f47f8b21b7e624.php:207) at __TwigTemplate_ecc87e20b0ef390835bb4f3e5e23da0ad5f5c730818ef33768dfab3601d83975->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/41/413a08040f133a781097b7fa1672bcf6b71222c52bd6850fb3c230af58847d91.php:50) at __TwigTemplate_784e7474c77e017ff155b4e655a7ab5bb2e90ab54f6ad2bd74821575abeec667->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/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php:50) at Symfony\Bridge\Twig\TwigEngine->render() (vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php:286) at Symfony\Bundle\FrameworkBundle\Controller\Controller->render() (src/ArticleBundle/Controller/DefaultController.php:76) at ArticleBundle\Controller\DefaultController->showApplicationAction() (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200) at Symfony\Component\HttpKernel\Kernel->handle() (web/app.php:23) |