Jump to content

Getting error when trying to create a duplicate controller


JoelWebsites

Recommended Posts

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

post-808397-0-04691800-1414651774_thumb.jpg

Edited by joeljfernandes (see edit history)
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...