NishantVadgama Posted August 8, 2014 Share Posted August 8, 2014 hello I have upload my module to prestashop addons but it give me response with " Hello, Use of $_GETis forbidden, please use Tools::getValue(); ", now when I am print $_GET it will return all the parametes in url, so how can I get same result with the help of Tools calss..? Link to comment Share on other sites More sharing options...
vekia Posted August 8, 2014 Share Posted August 8, 2014 for example, if you use: $_GET['myParam']; instead of it use: Tools::getValue('myParam'); 2 Link to comment Share on other sites More sharing options...
NishantVadgama Posted August 8, 2014 Author Share Posted August 8, 2014 when I print with print_r($_GET);exit; it will display array of parameters in the admin site (with all parameters); but with the help of Tools::getValue(); its compalsory to pass parameter name , in my module there is some requirement to get all parameters , so the problem with prestashop validator while uploading a module to addons Link to comment Share on other sites More sharing options...
vekia Posted August 8, 2014 Share Posted August 8, 2014 im affraid that in native prestashop classes feature you want doesnt exist. i think that you need to rebuild module to meet prestashop requirements Link to comment Share on other sites More sharing options...
NishantVadgama Posted August 11, 2014 Author Share Posted August 11, 2014 Then why so prestashop validator does not allow to use '$_GET' in module if prestashop does not have any alternate methods like Tools::get() , Thank You Vekia. 2 Link to comment Share on other sites More sharing options...
Recommended Posts