18591 Posts in 4875 Topics by 2285 members
General Questions
SilverStripe Forums » General Questions » How to call or point to the 'current theme' in PHP files?
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba
|
Page:
1
|
Go to End | |
| Author | Topic: | 74 Views |
-
How to call or point to the 'current theme' in PHP files?

27 January 2012 at 4:06am
quick question: Does anyone know how you can call the 'current' theme in the PHP code - I'm looking for the equivalent of $ThemeDir used on the templates, but for use on the php code files. Something like $this->Theme()?
eg. instead of
static $icon = "themes/FuelCMS/images/treeicons/folderauto";
it would be something likestatic $icon = "themes/".$this->Theme."FuelCMS/images/treeicons/folderauto";
-
Re: How to call or point to the 'current theme' in PHP files?

27 January 2012 at 4:27am
SSViewer::current_theme()
| 74 Views | ||
|
Page:
1
|
Go to Top |


