public function on_start() { parent::on_start(); if (!Config::get('concrete.user.profiles_enabled')) { $this->replace('/page_not_found'); } }
public function on_start() { parent::on_start(); if (!defined('ENABLE_USER_PROFILES') || !ENABLE_USER_PROFILES) { $this->render('/page_not_found'); } }
public function on_start() { parent::on_start(); $site = \Core::make('site')->getSite(); $config = $site->getConfigRepository(); if (!$config->get('user.profiles_enabled')) { $this->replace('/page_not_found'); } }
public function setPassThruBlockController(PageController $controller) { $controller->setPassThruBlockController($this->block, $this); }
public function __construct(\Concrete\Core\Page\Page $c) { parent::__construct($c); // Source: https://gist.github.com/Kaapiii/fe892b5a95b4a4f61280 $this->blogService = new BlogService(\ORM::entityManager()); }
public function request($key = null) { return parent::request($key); }