JoelWebsites Posted October 30, 2014 Share Posted October 30, 2014 (edited) I am trying to create a duplicate controller of the controller AdminThemeController. I have made a new copy of the file AdminThemeController ie AdminTheme2Controller.php in the controller folder and I have also even created a Theme.php copy name Theme2.php in the class folder and I have renamed the class to Theme2Core.php. I get the error on the attached screenshot Fatal error: Class 'AdminThemes2Controller' not found in D:\Local_Presta\local\htdocs\classes\controller\Controller.php on line 135 Please help me create a duplicate controller ie AdminTheme2 . Thanks Edited October 30, 2014 by joeljfernandes (see edit history) Link to comment Share on other sites More sharing options...
PascalVG Posted October 30, 2014 Share Posted October 30, 2014 Not sure if this is the problem here, but it can be that you have to remove the file: /cache/class_index.php Here are all classes - code files indexed, and your new class might not have been added yet. Just remove or rename. A new file will be created when reloading the (front page) of your shop Give it a try, pascal. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now