An exception has been thrown during the rendering of a template ("Call to a member function getI18n() on null").
An exception has been thrown during the rendering of a template ("Call to a member function getI18n() on null").
`{# templates/bundles/EasyAdminBundle/layout.html.twig #} {% extends '@EasyAdmin/layout.html.twig' %}
{% block content_title %}Set Delivery Zone{% endblock %}
{% block main %}
Use the map below to draw a delivery zone and save it.
{% endblock %} `
Had a similar problem. Looks like AdminContext is not defined. You can try my solution #6843
@Anoob007 : you need to
-
{% extends '@EasyAdmin/page/content.html.twig' %} -
<a href="{{ ea_url().setRoute('app_your_route_name') }}">Content</a>for accessing your custom url
@chestaxd : i think he is talking about https://symfony.com/bundles/EasyAdminBundle/current/actions.html#integrating-symfony-actions (ugly urls) instead of https://symfony.com/bundles/EasyAdminBundle/current/actions.html#adding-custom-actions (can be pretty urls)