Issue
$link= PS_ADMIN_DIR;
$admin_folder = substr(strrchr($link, "\ "), 1);
currently i am using this way to get folder name, But if there are any direct method or any constant please suggest me.. Thanks
Solution
For security reasons, admin folder name is not stored anywhere in your PrestaShop's files or database, so you have to do something like you do to find it.
However, you should use _PS_ADMIN_DIR_
instead of PS_ADMIN_DIR
as the second one is not defined directly by PrestaShop and could be undefined.
Answered By - ébewè Answer Checked By - Mary Flores (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.