Tape Posted August 12 Share Posted August 12 (edited) 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 August 12 by Tape (see edit history) 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