Getting a Theme Path from the Controller, (Page Type)
Permalink
I have tried using
I can get the full path by working with the Page Object
I would like to just use the relative path if I can but can not work out what I need to use(if possible) to display the theme Path
public function on_start(){ $html = Loader::helper('html'); $v = View::getInstance(); $this->addHeaderItem($html->javascript($v->getThemePath().'/js/ios6fix.js')); //this produces, "concrete/js" }
I can get the full path by working with the Page Object
$p = Page::getCurrentPage(); $t = $p->getCollectionThemeObject(); $themeDir = $t->getThemeURL(); //Produces,http://myurl.com/index.php/themes/mytheme/...
I would like to just use the relative path if I can but can not work out what I need to use(if possible) to display the theme Path