コード例 #1
0
ファイル: Debug.php プロジェクト: ravikathaitarm01/fluenz1
 public function __construct()
 {
     parent::__construct();
     $this->config->set_item(array('view', 'wrap'), true);
     $this->config->set_item(array('view', 'header'), 'main/common/header.php');
     $this->config->set_item(array('view', 'footer'), 'main/common/footer.php');
     $this->_init();
 }
コード例 #2
0
ファイル: MemberController.php プロジェクト: blegoh/Web
 public function __construct()
 {
     parent::__construct();
     if (Auth::petugas() == null) {
         header("Location: " . base . "/Auth");
     } else {
         $this->petugas = Auth::petugas();
     }
 }
コード例 #3
0
ファイル: _Main.php プロジェクト: ravikathaitarm01/fluenz1
 public function __construct($login = true)
 {
     parent::__construct();
     $this->config->set_item(array('view', 'wrap'), true);
     $this->config->set_item(array('view', 'header'), 'main/common/header.php');
     $this->config->set_item(array('view', 'footer'), 'main/common/footer.php');
     $this->_init();
     if ($login) {
         $this->_check_login();
     }
     if (UserSession::get('user')) {
         $this->_display->attach('notifications', (new Notify())->get_all(UserSession::get('user._id')));
     }
 }
コード例 #4
0
ファイル: Index.php プロジェクト: stdakov/pi_framework
 public function render($view)
 {
     parent::render('include.header');
     parent::render($view);
     parent::render('include.footer');
 }
コード例 #5
0
ファイル: BookController.php プロジェクト: blegoh/Web
 function __construct()
 {
     parent::__construct();
     $this->petugas = Auth::petugas();
 }
コード例 #6
0
ファイル: HomeController.php プロジェクト: blegoh/Web
 function __construct()
 {
     parent::__construct();
     $this->categories = Category::all();
 }
コード例 #7
0
ファイル: ErrorController.php プロジェクト: blegoh/Web
 function __construct()
 {
     parent::__construct();
     $this->view->render('error/404');
 }
コード例 #8
0
ファイル: Social.php プロジェクト: ravikathaitarm01/fluenz1
 public function __construct()
 {
     parent::__construct();
 }
コード例 #9
0
ファイル: Welcome.php プロジェクト: sugatasei/beerawecka
 public function __construct()
 {
     parent::__construct();
     $this->output->contentType('text', 'UTF-8');
 }