kesaven Posted March 31, 2014 Share Posted March 31, 2014 Hello I have added a new tab to my admin However when I am trying to add a link in a list as follows: $customer = new Customer($val['id_customer']);echo '</td><td><a href="?tab=AdminCustomers&id_customer='.$customer->id.'&viewcustomer&token='.Tools::getAdminToken('AdminCustomers'.(int)(Tab::getIdFromClassName('AdminCustomers')).(int)("5")).'"><img title="Voir" alt="" src="../img/admin/details.gif" /></a></td> I am getting a warning that there is a risk when opening the page. I tried to print $cookie->id_employeeI found it empty However I am logged on the admin. Please help! Link to comment Share on other sites More sharing options...
vekia Posted April 1, 2014 Share Posted April 1, 2014 I am getting a warning that there is a risk when opening the page. how the url from href="" param looks like? Link to comment Share on other sites More sharing options...
kesaven Posted April 2, 2014 Author Share Posted April 2, 2014 Hello Here is the link : <a href="?tab=AdminCustomers&id_customer=1&viewcustomer&token=27e657370785f8b4b82208b5bdb5449c" target="_blank"><img title="Voir" alt="" src="../img/admin/details.gif"></a> 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