JavaScript error when using Action

0

I'm trying to use a platform feature that I use (magento) but I'm not getting it, the following image error is being returned. I want to send newsletter by mobile, so I tried to copy the same action and everything else, but I'm not getting it.

    
asked by anonymous 04.10.2017 / 20:53

1 answer

1

Solution:

Since magento is a platform that uses controllers, blocks, and helpers, it "facilitates" much the interaction of its modules, what I was trying to do was pull an action out of that module, where it was set in XML, so I I put the code that is in the image inside the module, setting just another layout / css for the mobile, but achieving the same functionality. My mistake was trying to use Action outside the module.

    
04.10.2017 / 21:36