Another package port
Permalink
What is the appropriate replacement for Loader::library and Loader::model (I assume this one just goes away)? See below:
namespace Concrete\Package\EasyNews; defined('C5_EXECUTE') or die(_("Access Denied.")); use Concrete\Core\Block\BlockType\BlockType; use Concrete\Core\Attribute\Key\CollectionKey as CollectionAttributeKey; use Concrete\Core\Page\Single as SinglePage; use Loader; class Controller extends \Concrete\Core\Package\Package { protected $pkgHandle = 'easy_news'; protected $appVersionRequired = '5.7.0'; protected $pkgVersion = '1.3.0'; function __construct(){ Loader::library('controller',$this->pkgHandle); //Used by controllers Loader::library('dashboardcontroller',$this->pkgHandle); //Used by controllers } public function getPackageDescription() {
Viewing 15 lines of 51 lines. View entire code block.
Thanks