How to Create a Package in Concrete5.7?

Permalink
How to Create A Package in Concrete 5.7

 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi ArunSolomon,

I recommend reviewing the documentation.
Bundling Code into Packages for Reuse and Marketplace Distribution
https://documentation.concrete5.org/developers/packages/overview...
ArunSolomon replied on at Permalink Reply
Thanks .
When i try to add block in the package i got this error

Class 'Concrete\Package\TestPackage\BlockType' not found

i added this

BlockType::installBlockTypeFromPackage('content', $pkg);
hutman replied on at Permalink Reply
hutman
At the top you need to add

use BlockType;
ArunSolomon replied on at Permalink Reply
Thanks..
after add use Blocktype;
i am getting this error
Class '\Concrete\Package\TestPackage\Block\Content\Controller' not found
hutman replied on at Permalink Reply
hutman
Are you attempting to install a BlockType called Content that doesn't have a controller?