How to inherite / override index controller?

Hello, how can overriding controller? If I want to change in Index Controller How is it possible?

It means how to inherit an index controller to my custom index controller.

If you know, please provide a file structure

Hi testseeders,

you misunderstood a key-concept here. You shouldn’t change the controller itself. You need to rely on a distpach-event.
Here’s a short overview: Shopware controller

But actually you should start here: Plugin quick Startup Guide

If you read it until the end and understand it, you should be able to solve the problem.

Best regards