langziyang Posted April 17, 2015 Share Posted April 17, 2015 i have a module,on the .tpl file if i use {$link->getModuleLink('modulename','controllername')}. the i can link to the modulename/controllers/front/controllername.php . but how can i link to the modulename/controllers/admin/controllername.php? Link to comment Share on other sites More sharing options...
cristic Posted April 17, 2015 Share Posted April 17, 2015 Use getAdminLink instead. {$link->getAdminLink('controllername')} Link to comment Share on other sites More sharing options...
acorn Posted September 26, 2018 Share Posted September 26, 2018 i realise this is an old thread, but i am still trtying to find a way to generate a link to my module's admin controller... @cristic i tried your suggestion, but getAdminLink() seems to only work for Core Prestashop Admin controllers, how can i generate a link to the controller i have created in /modules/mymodule/controllers/admin/callback.php ? 1 Link to comment Share on other sites More sharing options...
Othmen215 Posted March 21, 2023 Share Posted March 21, 2023 On 9/26/2018 at 12:56 PM, acorn said: i realise this is an old thread, but i am still trtying to find a way to generate a link to my module's admin controller... @cristic i tried your suggestion, but getAdminLink() seems to only work for Core Prestashop Admin controllers, how can i generate a link to the controller i have created in /modules/mymodule/controllers/admin/callback.php ? I still have the same problem any ideas?? 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