Include an add on with theme

Permalink 1 user found helpful
Hi,

I want to include an Add-on within a theme so the block is installed with the theme and therefore can be added as a block.

I've got it set up like the following which doesn't work, I'm thinking I need to add something to controller.php?

ThemeName > block > myaddon
ThemeName > themes > themename

Many thanks

sarah3585
 
sarah3585 replied on at Permalink Reply
sarah3585
I've answered my own question, after typing it out I figured what it might be and the power of Google helped me the rest of the way.

Needed to add:
BlockType::installBlockTypeFromPackage('hello_world', $pkg);


Link for anyone else that comes across this with the same issue.
http://www.concrete5.org/documentation/developers/system/packages/...