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

davidofadelaide
 
davidofadelaide replied on at Permalink Reply
davidofadelaide
Big Ups to the #Concrete5 chat room! I had a chat with a couple of fellow coders, one of which highlighter to me;

'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.
davidofadelaide replied on at Permalink Reply
davidofadelaide
After a myriad of change requests, I found it easier to create a new header file and include that in the theme.

so be it!