{% block map %}{% endblock %}
{% block content %}
<section id="content" >
<ol class="breadcrumb">
<li><a href="{{ path('homepage') }}" itemprop="item" ><i class="fas fa-home"></i> {% trans %}Homepage{% endtrans %}</a></li>
<li><a href="{{ path('article_list') }}" itemprop="item" ><i class="fas fa-home"></i> {% trans %}Articles{% endtrans %}</a></li>
<li class="active">{{ article.translate.title }}</li>
</ol>
<div class="container">
<div class="row align-items-center">
<div class="col-lg-7 col-12">
// line 2
$macros["macro"] = $this->macros["macro"] = $this->loadTemplate("app/_inc/macros.html.twig", "app/article/show.html.twig", 2)->unwrap();
// line 3
$this->parent = $this->loadTemplate("base.html.twig", "app/article/show.html.twig", 3);
$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".');
}
public function showAction(Article $article)
{
if (!$article) {
return $this->redirectToRoute('homepage');
}
return $this->render('app/article/show.html.twig', ['article' => $article]);
}
/**
* @Route("/article/application/{id}/{slug}", name="application_show", requirements={"_locale" = "en|fr|de|cn"}, options={"sitemap": true, "priority": 0.7, "changefreq": "yearly"})
* @Method("GET")
*/
$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) {
}
public function generate($name, $parameters = [], $referenceType = self::ABSOLUTE_PATH)
{
if (!isset(self::$declaredRoutes[$name])) {
throw new RouteNotFoundException(sprintf('Unable to generate a URL for the named route "%s" as such route does not exist.', $name));
}
list($variables, $defaults, $requirements, $tokens, $hostTokens, $requiredSchemes) = self::$declaredRoutes[$name];
return $this->doGenerate($variables, $defaults, $requirements, $tokens, $parameters, $name, $referenceType, $hostTokens, $requiredSchemes);
echo "\" itemprop=\"item\" ><i class=\"fas fa-home\"></i> ";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->getTranslator()->trans("Homepage", [], "messages");
echo "</a></li>
<li><a href=\"";
// line 15
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("article_list");
echo "\" itemprop=\"item\" ><i class=\"fas fa-home\"></i> ";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->getTranslator()->trans("Articles", [], "messages");
echo "</a></li>
<li class=\"active\">";
// line 16
// line 2
$macros["macro"] = $this->macros["macro"] = $this->loadTemplate("app/_inc/macros.html.twig", "app/article/show.html.twig", 2)->unwrap();
// line 3
$this->parent = $this->loadTemplate("base.html.twig", "app/article/show.html.twig", 3);
$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".');
}
public function showAction(Article $article)
{
if (!$article) {
return $this->redirectToRoute('homepage');
}
return $this->render('app/article/show.html.twig', ['article' => $article]);
}
/**
* @Route("/article/application/{id}/{slug}", name="application_show", requirements={"_locale" = "en|fr|de|cn"}, options={"sitemap": true, "priority": 0.7, "changefreq": "yearly"})
* @Method("GET")
*/
$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
[2/2] RuntimeError |
---|
Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "article_list" as such route does not exist."). at app/Resources/views/app/article/show.html.twig:15 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/ae/ae6cab892d64c9f23ef28bff08dc8843400779484e2e76f96c4aef9f06a78f0c.php:52) at __TwigTemplate_158c679915fbcdb38e0b8d269245590c121dabfee4d23b1e5179abcd29bc2be4->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:51) at ArticleBundle\Controller\DefaultController->showAction() (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) |
[1/2] RouteNotFoundException |
---|
Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "article_list" as such route does not exist. at var/cache/prod/appProdDebugProjectContainerUrlGenerator.php:303 at appProdDebugProjectContainerUrlGenerator->generate() (vendor/symfony/symfony/src/Symfony/Component/Routing/Router.php:240) at Symfony\Component\Routing\Router->generate() (vendor/symfony/symfony/src/Symfony/Bridge/Twig/Extension/RoutingExtension.php:55) at Symfony\Bridge\Twig\Extension\RoutingExtension->getPath() (var/cache/prod/twig/ae/ae6cab892d64c9f23ef28bff08dc8843400779484e2e76f96c4aef9f06a78f0c.php:129) at __TwigTemplate_158c679915fbcdb38e0b8d269245590c121dabfee4d23b1e5179abcd29bc2be4->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/ae/ae6cab892d64c9f23ef28bff08dc8843400779484e2e76f96c4aef9f06a78f0c.php:52) at __TwigTemplate_158c679915fbcdb38e0b8d269245590c121dabfee4d23b1e5179abcd29bc2be4->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:51) at ArticleBundle\Controller\DefaultController->showAction() (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) |