Description
Hi everyone,
This issue refers to the following use case of Symfony Framework :
You've 2 bundles, one for frontend (Frontbundle), the other for backend (BackBundle).
Both are accessible through different urls (say, app.php/ & app.php/backend)
Both have their own Resources (js, css, layouts).
Both refer to Services or Resources stored in a CommonBundle when necessary.
There are two aesthetic issues in this case :
- There is currently no way to override TwigBundle error template for each bundle separately.
If I type "app.php/wrong_url", I want one error page located in FrontBundle/Resources/views/Exception to be displayed.
If I type "app.php/backend/wrong_url", I want one error page located in BackBundle/Resources/views/Exception to be displayed.
- I mean, there should be a way but nothing worked from sources I got...
Sources :
http://symfony.com/doc/2.0/cookbook/bundles/inheritance.html
#1511
- There is currently no way to implement two login forms with two different templates. As far as I understood you can declare only one routing rule for "/login", "/login_check", "/logout". "/login" being the real matter here because it calls a controller / template.
If I type "app.php/login", I'd like to display a login form that uses frontend template.
If I type "app.php/backend/login", I'd like to display a login form that uses backend template.
- I mean, I couldn't find a way...
Thanks for your feedback upon these matters.