コード例 #1
0
 public function on_start()
 {
     parent::on_start();
     if (!Config::get('concrete.user.profiles_enabled')) {
         $this->replace('/page_not_found');
     }
 }
コード例 #2
0
 public function on_start()
 {
     parent::on_start();
     if (!defined('ENABLE_USER_PROFILES') || !ENABLE_USER_PROFILES) {
         $this->render('/page_not_found');
     }
 }
コード例 #3
0
 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');
     }
 }
コード例 #4
0
ファイル: BlockController.php プロジェクト: ceko/concrete5-1
 public function setPassThruBlockController(PageController $controller)
 {
     $controller->setPassThruBlockController($this->block, $this);
 }
コード例 #5
0
ファイル: blog.php プロジェクト: Nukiuchi/c5-nukiuchi-blog
 public function __construct(\Concrete\Core\Page\Page $c)
 {
     parent::__construct($c);
     // Source: https://gist.github.com/Kaapiii/fe892b5a95b4a4f61280
     $this->blogService = new BlogService(\ORM::entityManager());
 }
コード例 #6
0
 public function request($key = null)
 {
     return parent::request($key);
 }