I have created a module in which i have a index controller under authorization folder. In this index controller i have checked if the authorization is valid and if valid it proceed further. Now i would like to call or use this index authorization controller file in another controller files within same module. Can anyone suggest what will be the best practices to do so. I have heard about dispatch function and use of extend in other controller files. But don't know how to implement it.

Can you anyone suggest with an example.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.