Jump to content

Is it possible to override the IndexController?


Recommended Posts

Hi all,

I've seen that to override the CategoryController you have to define this class:

 

class CategoryController extends CategoryControllerCore
{..}

 

Is it possible with the IndexController too?

I've tried with:

class IndexController extends IndexControllerCore
{...}

 

but it doesn't work.

Perhaps only some controllers can be redefined.

 

claudio

 

 

 

Link to comment
Share on other sites

All the controllers can be overridden, so if it isn't working for some, you must have made a mistake in the code or forgotten to go to Advanced Parameters > Performance and click the "Clear cache" button (or manually delete cache/class_index.php).

  • Like 1
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...