Jump to content

Manually add employee cookie on new admin page / tab


kesaven

Recommended Posts

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_employee
I found it empty

 

However I am logged on the admin.

 

Please help!

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...