Jon

Apr
3
awarded Notable Question
Mar
26
awarded Popular Question
Mar
19
awarded Yearling
Feb
12
awarded Favorite Question
Dec
19
awarded Famous Question
Nov
23
awarded Notable Question
Jun
20
awarded Nice Question
Mar
7
accepted Check if Content Inside Youtube iFrame has Changed
Mar
7
asked Check if Content Inside Youtube iFrame has Changed
Jan
14
comment Symfony2 - ExceptionController - NotFoundHttpException
@Squazic I've modified my question. In the dev env, I am now getting a Chrome 500 error.
Jan
14
revised Symfony2 - ExceptionController - NotFoundHttpException
added 1464 characters in body
Jan
14
comment Symfony2 - ExceptionController - NotFoundHttpException
@Squazic I went to local.store.com/app.php/fake-page (my understanding is app.php means prod` and received the same error of NotFoundHttpException. I am starting to think there is a problem with my controller. I am going to modify my question to include my controller code in a minute.
Jan
14
comment Symfony2 - ExceptionController - NotFoundHttpException
@Squazic I don't think so. I modified my app.php to say $kernel = new AppKernel('local', true);
Jan
14
asked Symfony2 - ExceptionController - NotFoundHttpException
Jan
14
comment Symfony2 - Modifying Exception Controller
Hopefully I will be able to get get at least a bogey within the week. I'm still confused about where/how to point the controller to my error pages which are located at AcmeDemoBundle/Reousrces/views/Pages/Errors/404.html.twig. I am looking at the return statement you wrote in your ExceptionController and I am unsure how that return statement would find my template. In the ExceptionController in the /vendors directory, I understand that it would look in a directory and find a page that had the same name as the error code. Is that similarly what is happening in your return statement?
Jan
14
comment Symfony2 - Modifying Exception Controller
Ah, that makes sense. Thank you. I'll try implementing your solution. Hopefully all goes well :)
Jan
14
comment Symfony2 - Modifying Exception Controller
Sorry, I should have explained myself better. I would like to override the exception controller as I am using your solution from your other post. I am currently learning PHP/Symfony on my own time, but at the same time I need to help my team on the project.
Jan
14
comment Symfony2 - Modifying Exception Controller
I also don't understand the if statement in your code. Does the if mean if they enter in that route, redirect them to a backend template? Sorry, I am new to PHP and frameworks.
Jan
14
comment Symfony2 - Modifying Exception Controller
Would I be putting my error pages in app/Resources/TwigBundle/views/Exception?
Jan
14
comment Symfony2 - Modifying Exception Controller
@Mike Perfect, I found the config.yml. I was looking in the wrong directory.
1 2 3 4 5