<meta name="apple-mobile-web-app-title" content="Machinetrack">
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('showroom/showroom.css', 'css') }}" />
{% if showroom.customCss %}
<link rel="stylesheet" href="{{ asset('showroom/dealer/'~showroom.customCss~'.css', 'css') }}" />
{% else %}
<link rel="stylesheet" href="{{ asset('showroom/showroom_default.css', 'css') }}" />
{% endif %}
<link rel="stylesheet" href="{{ asset('showroom/galleria.classic.css', 'css') }}" />
// line 24
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("showroom/showroom.css", "css"), "html", null, true);
echo "\" />
";
// line 25
if (twig_get_attribute($this->env, $this->source, (isset($context["showroom"]) || array_key_exists("showroom", $context) ? $context["showroom"] : (function () { throw new RuntimeError('Variable "showroom" does not exist.', 25, $this->source); })()), "customCss", [], "any", false, false, false, 25)) {
// line 26
echo " <link rel=\"stylesheet\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("showroom/dealer/" . twig_get_attribute($this->env, $this->source, (isset($context["showroom"]) || array_key_exists("showroom", $context) ? $context["showroom"] : (function () { throw new RuntimeError('Variable "showroom" does not exist.', 26, $this->source); })()), "customCss", [], "any", false, false, false, 26)) . ".css"), "css"), "html", null, true);
echo "\" />
";
$macros = $this->macros;
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "MtrMtCoreBundle:showroom:ad-details.html.twig"));
$this->parent = $this->loadTemplate("MtrMtCoreBundle:showroom:base.html.twig", "MtrMtCoreBundle:showroom:ad-details.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".');
}
$adInfo = new MailList();
$adInfoForm = $this->createForm(AdInfoType::class, $adInfo);
}
// render page
return $this->render('MtrMtCoreBundle:showroom:ad-details.html.twig', array('account' => $account, 'ad' => $ad, 'showroom' => $exportSite->getShowroom(), 'adQuestionForm' => $adQuestionForm->createView(), 'adInfoForm' => $adInfoForm->createView(), 'message' => $message));
}
/**
* @Route("/{_locale}/showroom/{uuid}/last-added/{qty}", name="_showroom-last-added")
$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: Impossible to access an attribute ("customCss") on a null variable. at src/Mtr/MtCoreBundle/Resources/views/showroom/base.html.twig:25 at twig_get_attribute() (var/cache/prod/twig/79/799d311a2c68f0dfc44cea870edc7d3f2d21dd18fdaebe87db2017d5c30033dc.php:150) at __TwigTemplate_0279b44a1b81078b963852d87055f7aa58140ff89f84232ad41228fd19838721->block_stylesheets() (vendor/twig/twig/src/Template.php:184) at Twig\Template->displayBlock() (var/cache/prod/twig/79/799d311a2c68f0dfc44cea870edc7d3f2d21dd18fdaebe87db2017d5c30033dc.php:76) at __TwigTemplate_0279b44a1b81078b963852d87055f7aa58140ff89f84232ad41228fd19838721->doDisplay() (vendor/twig/twig/src/Template.php:407) at Twig\Template->displayWithErrorHandling() (vendor/twig/twig/src/Template.php:380) at Twig\Template->display() (var/cache/prod/twig/53/5308793bf45b59ae549a796c4ad3295abd926e6806cf60e35ae5e9bd3c4ebfdd.php:47) at __TwigTemplate_47ecd5c046c2931b4c12ca73a4b1996e9286473a4c4354ac7130a01cc298746f->doDisplay() (vendor/twig/twig/src/Template.php:407) at Twig\Template->displayWithErrorHandling() (vendor/twig/twig/src/Template.php:380) at Twig\Template->display() (vendor/twig/twig/src/Template.php:392) 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/Mtr/MtCoreBundle/Controller/ShowroomController.php:413) at Mtr\MtCoreBundle\Controller\ShowroomController->adDetailsAction() (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:10) |