Page_type controller accessing theme
Permalinkhow can I access the theme path from a page_type controller.
I am injecting a JS file into the header, but wanted to use getThemePath().
Thanks in advance
This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.
'isnt getThemePath() simmilar to BASE_URL/themes/my_theme/css/main.css' (Hippie_)
The down side to this is if the theme is moved / renamed it will break, but for the mean time I am happy with this suggestion to get my code working.
If anyone can think of a more robust way I would be greatful.
In the meantime Thanks guys.