Page_type controller accessing theme
Permalink
I apologise if this is answered elsewhere (can't locate it)....
how 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
how 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
'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.