Closed eerison closed 3 years ago
When I look at the implementation this seems not related to Sonata (or SonataPage) at all. So I'm not sure it's a good idea to add this in this bundle.
This seems maybe better in another repository, and directly implemented by the developer inside his project.
I see, I thought to put in sonata project because others developers can have the same problem.
Then I'll close this issue for now :)
Create sonata_path extension
I'm using
page_alias
to link pages in my twig filesexample
But in case the user remove the page I'll get an exception and it'll breaking my whole page.
then my Idea is create a TwigExtension to use this routers
example:
then you can use in yours twig templates like this