This module adds a script to the page, then the script makes an ajax request back to the same controller but different function. Something like:
Code: Select all
class ControllerExtensionModuleTest1 extends Controller {
public function index($setting){
//loads a view containing some javascript which will make a POST request back to this controller
public function products(){
}
Second problem is that I do not know how to retrieve those settings in a different way.
Also, I've been trying to pass those settings on the url but $this->url->link is converting all "&" into "&" so $this->request->get['param'] does not work.
What I'm doing wrong?