vtwqcfchn Posted February 14, 2015 Share Posted February 14, 2015 hi all I am adding a link (each row of grid) that point to a carrier. here is my folowling code: $token_carriers = Tools::getAdminToken('AdminCarriers'.(int)Tab::getIdFromClassName('AdminCarriers').(int)Context::getContext()->employee->id); $values= Db::getInstance()->ExecuteS($this->_query); foreach ($values as &$value) { $value['name'] ='<p><a href="index.php?controller=AdminCarrierWizard&token='.$token_carriers.'&id_carrier='.$value['id_carrier'].'">'.$this->l($value['name']).'</a></p>'; } I have got an error 'Invalid security token' after click any suggestion ? Link to comment Share on other sites More sharing options...
vtwqcfchn Posted February 17, 2015 Author Share Posted February 17, 2015 wow, it works correctly, thanks 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