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
 
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

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.