Package, install a Theme

Permalink
Hello

I am looking to install a Theme from inside a Package. I can install Blocks using
BlockType::installBlockTypeFromPackage('blockname', 'packagename');

inside the packages controller.php

but how to i refer to a theme?
and does the physical location of the theme stay in the /packages/ or move to the /themes/ folder?

Cheers

for any help.

novelnova
View Replies: View Best Answer
jordanlev replied on at Permalink Best Answer Reply
jordanlev
Download any free theme from the marketplace and look at the code in its controller.php file.
novelnova replied on at Permalink Reply
novelnova
had a look and it is
PageTheme::add('themename', 'package');


cheers