-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Routing] Properly handle Responses and exceptions by displaying 404 pages, etc. #1789
Comments
Symfony does some of this for us:
http://symfony.com/doc/current/cookbook/controller/error_pages.html the debug flag is set to false in most situations I've seen (including zikula.org I think) so we are still seeing all exceptions all the time. |
also, all twig stuff is moved to 1.5 |
I've looked through the entire
Of these, AccessDeniedException is now handled. NotFoundHttpException and InvalidArgumentException are used quite often. FatalErrorException is used some and the others are used rarely. What shall we do with the these? |
I did not scan any API or other classes in |
For a NotFoundHttpException or a InvalidArgumentException we could display an error page. Slightly related but for future: http://symfony.com/blog/new-in-symfony-2-6-error-page-previews |
[11/17/14, 4:00:46 PM] Craig Heydenburg: can you tell me more about #1789
|
This ticket is mainly about using the new AbstractController and concerns about it's functionality. Especially with regard to theming and differences in how it might send responses, e.g.
|
ping @Kaik can you help out here by telling us how you have tested the new AbstractController and what your experience was? |
That was long time ago I was able to display page with twig and some data from db and actually that was all, no theme wrapped, no translation, no forms, just plain page and items list and that was really long time ago... |
I wrote a small module that can be used to test Exceptions and other things we want to break. feel free to expand the scope of the module 😄 https://github.com/craigh/BreakIt ping @cmfcmf the bad news is, zikula isn't yet performing as I expected with regard to this ticket. |
one interesting point I just learned: because Core::init() runs before any REQUEST events, the old |
closing. If other issues are discovered, they should be opened as separate issues. |
@Kaik - you might want to check out how I am using Twig in https://github.com/craigh/BreakIt |
👍 |
remove exception handling in ajax portion of legacy handler refs #1789
refs #1552
The text was updated successfully, but these errors were encountered: