" aria-labelledby="headingOne" data-parent="#accordion">
<div class="card-body">
<ul>
<li class="mb-2 font-14">
<i class="fal fa-map-marker-alt text-primary fa-lg mr-3"></i>
<span>{{ campus.address }}<br/>{{ campus.code_postal }} {{ campus.city }} – {{ campus.country.name }}</span>
</li>
{% if (campus.telephone) %}
<li class="mb-2 font-14">
<i class="fal fa-phone-volume text-primary fa-lg mr-3"></i>
<span><a href="tel:{{ campus.telephone }}">{{ campus.telephone }}</a></span>
echo "<br/>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["campus"], "code_postal", [], "any", false, false, false, 269), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["campus"], "city", [], "any", false, false, false, 269), "html", null, true);
echo " – ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["campus"], "country", [], "any", false, false, false, 269), "name", [], "any", false, false, false, 269), "html", null, true);
echo "</span>
</li>
";
// line 271
if (twig_get_attribute($this->env, $this->source, $context["campus"], "telephone", [], "any", false, false, false, 271)) {
$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", "web/page/program/detail.html.twig"));
$this->parent = $this->loadTemplate("web/layout/base.html.twig", "web/page/program/detail.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
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] ?? []);
}
public function display(array $context = [])
{
// using func_get_args() allows to not expose the blocks argument
if ($this->container->has('templating')) {
@trigger_error('Using the "templating" service is deprecated since version 4.3 and will be removed in 5.0; use Twig instead.', \E_USER_DEPRECATED);
$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".');
}
if (null === $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);
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 ("name") on a null variable. at templates/web/page/program/detail.html.twig:269 at twig_get_attribute() (var/cache/staging/twig/24/24d6537d6983f72b6b687189bcf50ff6609c0c83385665169bbab84586edace8.php:616) at __TwigTemplate_455c8a3d353c4e9f5926c3b345fe602c8f1de8e96f396599a1e402356a163957->block_page_content() (vendor/twig/twig/src/Template.php:171) at Twig\Template->displayBlock() (var/cache/staging/twig/88/8834396a33cb490f563ad81dbcd8d32cde1584c510b5be8dad33a4eef78f4767.php:228) at __TwigTemplate_44e3c7774aea06a8fe2201145b7d65dcc202713f33ecf3b1fb2e3e8b1db08d1d->doDisplay() (vendor/twig/twig/src/Template.php:394) at Twig\Template->displayWithErrorHandling() (vendor/twig/twig/src/Template.php:367) at Twig\Template->display() (var/cache/staging/twig/24/24d6537d6983f72b6b687189bcf50ff6609c0c83385665169bbab84586edace8.php:45) at __TwigTemplate_455c8a3d353c4e9f5926c3b345fe602c8f1de8e96f396599a1e402356a163957->doDisplay() (vendor/twig/twig/src/Template.php:394) at Twig\Template->displayWithErrorHandling() (vendor/twig/twig/src/Template.php:367) at Twig\Template->display() (vendor/twig/twig/src/Template.php:379) at Twig\Template->render() (vendor/twig/twig/src/TemplateWrapper.php:40) at Twig\TemplateWrapper->render() (vendor/twig/twig/src/Environment.php:277) at Twig\Environment->render() (vendor/symfony/framework-bundle/Controller/ControllerTrait.php:235) at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render() (src/Controller/Web/ProgramController.php:112) at App\Controller\Web\ProgramController->detail() (vendor/symfony/http-kernel/HttpKernel.php:158) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:80) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:201) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:25) |