ThemePath in PageType controller

Permalink
How do you get the themepath in a page type controller?

I tried this in view():
echo View::getInstance()->getThemePath();
echo $this->view->getThemePath();


Both show null. Any ideas?

A3020
 
ramonleenders replied on at Permalink Best Answer Reply
ramonleenders
Like so?

$c = Page::getCurrentPage();
$pt = PageTheme::getByID($c->getCollectionThemeID());
echo $pt->getThemeURL();


These are the use statements you need

use Page;
use PageTheme;