I am developing backend plugin, and what I have to do is to extend customer detail page.
For example, when administrator click on the customer, and customer detail page is opened, I want to create another tab called „Markets“ where is going to be a list of markets of that customer.
In some cases, you also want to add whole new components to a backend module. This example might look similar to the first one, but there are subtle changes. In this example, a new tab is introduced to the customer module ,[…]
In the Views dir, there is an structure:
– backend
---- pe_markets
------ controller
------ model
------ store
So, should I create new directory in backend, called for example “pe_customers” and then work in pe_customers/app.js, or I have to work in pe_markets/app.js to create new tab in customer detail page?
You need to share more of your code. How does your event-listener php-function look like? How does your Ext.JS Code look like? Sorry but with this little information we can’t help you. It doesn’t depend on the structure only and the mistake is more likely somewhere else.
In the tutorial they add a Event-Listener to the Enlight_Controller_Action_PostDispatchSecure_Backend_Customer-Event. That’s missing in your implementation.
Search for „Enlight_Controller_Action_PostDispatchSecure_Backend_Customer“ in the tutorial and you’ll find the coresponding information.
Not working again. I am getting an error "SyntaxError: Unexpected token : " as soon as I refresh backend, but as mine eyes can see, there is no such an error