Jump to content

Prestashop 1.7.8.8 Admin url from front office


Tape

Recommended Posts

I need to send from the front office a admin URL: https://www.example.com/index.php?controller=AdminKbProductApprovalList.

The solution I've found is using $this->context->link->getLegacyAdminLink('AdminKbProductApprovalList', false);, which generates the correct URL,but without admin folder and this produces an error.

Warning: Use of undefined constant PS_ADMIN_DIR - assumed 'PS_ADMIN_DIR' (this will throw an Error in a future version of PHP) in /home/name/projects/asd.local/classes/Link.php on line 906.

How can I fix this?

Edited by Tape (see edit history)
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...