stratboy Posted May 14, 2013 Share Posted May 14, 2013 (edited) Hi. I've got to pass a different ID to a controller, based on the previously clicked link. So the next controller can do queries based on the passed ID. I can add it to urlvars, so the link looks like this: http://mydomain.com/...&id={$data->id} Since I'm new to prestashop, I wanted to know if it's the right way to do it or maybe if there are better/official ways or best practices. Thank you Edited May 14, 2013 by stratboy (see edit history) Link to comment Share on other sites More sharing options...
stratboy Posted May 14, 2013 Author Share Posted May 14, 2013 (edited) Answer by myself: $this->context->link->getModuleLink('module_name','controller_name',array('id'=>$data->id)); then from the controller, the good ol' way: $_GET['id'] Bye Edited May 14, 2013 by stratboy (see edit history) 3 Link to comment Share on other sites More sharing options...
Kogkalidis Posted July 28, 2015 Share Posted July 28, 2015 Sorry for late answer but I really want to learn how to show dynamic pages because I create a custom forum (module for ps store) and want to add the id of the post or category in the url to be like this "https://tapanda.gr/index.php?fc=module&module=forum&id_category=2&controller=category&id_lang=1".. Any ideas?? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now