cancel
Showing results for 
Search instead for 
Did you mean: 

How to find what is the controller responsible?

SOLVED

How to find what is the controller responsible?

I am using the Amasty store locator module, in the backend, i am filled with all values and click the save button, how to find which controller is responsible for saving all the values.

 

After clicking the save button i want to do some customization, What is the controller responsible?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to find what is the controller responsible?

Hello @Aveeva ,

 

The most common way to find the responsible controller class is to watch the xhr request in network tab.

Follow these steps :

1. right before clicking save, open the network tab by F12 key.

2. Observe the xhr requests being made, the first request after clicking on save will go to the controller class.

 

Hope it helps !

 

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

View solution in original post

2 REPLIES 2

Re: How to find what is the controller responsible?

@Aveeva  

/location/save controller is called on save button click!
Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

Re: How to find what is the controller responsible?

Hello @Aveeva ,

 

The most common way to find the responsible controller class is to watch the xhr request in network tab.

Follow these steps :

1. right before clicking save, open the network tab by F12 key.

2. Observe the xhr requests being made, the first request after clicking on save will go to the controller class.

 

Hope it helps !

 

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy