How to get the Shop base URL in prestashop to use in admin tab tpl files?

Manik picture Manik · Aug 22, 2013 · Viewed 32k times · Source

I created a module, and hook using displayAdminProductsExtra to displayed in admin panel.I want to use the base_url smarty variable in back end tpl files.I searched and came to known that base_url is only for front end tpl files. How to get the base url and use in back end tpl files? any help would be appreciated.

Answer

Raza picture Raza · Aug 22, 2013

If you just need base directory use __PS_BASE_URI__ for complete URL you can use

_PS_BASE_URL_.__PS_BASE_URI__