-
Notifications
You must be signed in to change notification settings - Fork 788
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
ErrorController redeclaration #899
Comments
I'm using huge at the core of quite a large project but I don't have this issue because I have created a method within Redirect.php as follows:
...and then in Application.php I have...
Obviously my Error Controller also looks a little different because it now has two different methods for rendering two different views, but I'm sure you get the gist. |
Hi, I also tried that! (before) (after) Regardless, both changes should be a reasonable solution to the issue :) |
Hi all,
At this URL:
{Base URL}/error/whatever
The following error will appear:
"Fatal error: Cannot declare class ErrorController, because the name is already in use..." (due a double "require" in application/core/Application.php at L37 and L51).
My suggestion for fixing this issue is to change L51 in application/core/Application.php:
(before)
require Config::get('PATH_CONTROLLER') . 'ErrorController.php';
(after)
require_once Config::get('PATH_CONTROLLER') . 'ErrorController.php';
Greetings
The text was updated successfully, but these errors were encountered: