コード例 #1
0
 public function __construct()
 {
     parent::__construct();
     $this->load->database();
     $this->load->helper(array('view', 'tools'));
     save_log_data();
 }
コード例 #2
0
 function __construct()
 {
     parent::__construct();
     if ($this->uid) {
         $this->redirect('/?m=home');
     }
 }
コード例 #3
0
ファイル: Files.php プロジェクト: Nattpyre/rocketfiles
 public function __construct()
 {
     parent::__construct();
     $this->_files = $this->loadModel('model_files');
     $this->_user = $this->loadModel('model_user');
     $this->checkCookie();
 }
コード例 #4
0
ファイル: Users.php プロジェクト: juancabraal/vibesetal
 /**
  * Call the parent construct
  */
 public function __construct()
 {
     parent::__construct();
     $this->language->load('Welcome');
     $this->users = new \Models\Users();
     $this->userLogged();
 }
コード例 #5
0
 public function __construct()
 {
     parent::__construct();
     if ($this->uid) {
         $this->redirect('/?');
     }
 }
コード例 #6
0
 public function __construct()
 {
     parent::__construct();
     $this->locale->load('Welcome');
     // Model can be initialized in constructur
     // $this->model = new \Modules\Test\Models\SampleModelInModule();
 }
コード例 #7
0
ファイル: controller.php プロジェクト: Kheros/Plexis
 public function __construct()
 {
     // Normally construct the application controller
     parent::__construct();
     // !!! Your module cunstructer here !!! //
     /* 
         Module template option ('module_view_paths') When set to true, the template system will load
         the pages view file from the the templates module view folder if it exists: 
         ( template_path/module_views/module_name/viewname.php )
         
         If it doesnt exist, then it loads the default module view file: 
         ( modules/module_name/views/viewname.php )
         
         If set to false, it will load the default view for the URI 
         ( template_path/views/controller/viewname.php ) ) 
     */
     $this->Template->config('module_view_paths', true);
     /*    
         Example loading a module config file
         First Param => 'Module Name', 
         Second Param => 'Config Array Name', ( !! Must be Unique! Cannot be 'Core', 'App', OR 'DB' !! )
         Third Param => 'Config File Name', 
         Forth Param => 'Array Variable Name' ( !! ONLY IF config options are in an array !! ) 
     */
     load_module_config('Devtest', 'mod_config', 'config.php', 'config_options');
     // Usage
     $this->Config = load_class('Config');
     $this->Config->get('var_name', 'mod_config');
     // OR
     config('var_name', 'mod_config');
 }
コード例 #8
0
ファイル: Bootstrap.php プロジェクト: joaopauloti/inmvc
 /**
  * Error
  *
  * Display an error page if there's no controller
  * that corresponds with the current url.
  */
 private static function error()
 {
     $error = self::$url[0] == '500' ? '500' : '404';
     self::$controller = new Controllers\Error();
     self::$controller->index($error);
     exit;
 }
コード例 #9
0
ファイル: Audit.php プロジェクト: jnwatts/credentials
 public function __construct()
 {
     parent::__construct();
     $this->audit = new \Models\Audit();
     $this->users = new \Models\Users();
     $this->keys = new \Models\Keys();
 }
コード例 #10
0
ファイル: Welcome.php プロジェクト: chriiiish/personal
 /**
  * Call the parent construct
  */
 public function __construct()
 {
     parent::__construct();
     $this->language->load('Welcome');
     $this->_pages = new \Models\Pages();
     $this->_welcomes = new \Models\Welcomes();
 }
コード例 #11
0
 public function __construct()
 {
     parent::__construct();
     $this->loadModel('messageModel');
     $this->loadModel('pageModel');
     $this->loadModel('slideModel');
 }
コード例 #12
0
 /**
  * Call the parent construct
  */
 public function __construct()
 {
     parent::__construct();
     $this->entradas = new \Models\Entradas();
     $this->tags = new \Models\Tags();
     $this->entradashastags = new \Models\Entradashastags();
 }
コード例 #13
0
 public function __construct()
 {
     parent::__construct();
     if (!Session::get('loggedin')) {
         Url::redirect('login');
     }
 }
コード例 #14
0
 function __construct()
 {
     parent::__construct();
     if (!$this->uid) {
         $this->redirect('/?m=member&c=login');
     }
 }
コード例 #15
0
ファイル: SearchHotels.php プロジェクト: gkawin/siteminder
 public function __construct()
 {
     parent::__construct();
     $this->load->database();
     $this->load->model('travflex/search_model');
     $this->load->helper(array('view', 'tools'));
     save_log_data();
 }
コード例 #16
0
 public function __construct()
 {
     parent::__construct();
     if (!Session::get('loggedin')) {
         Url::redirect('admin-login');
     }
     $this->_model = new \App\Models\Administrador();
 }
コード例 #17
0
ファイル: Page.php プロジェクト: chriiiish/personal
 /**
  * Call the parent construct
  */
 public function __construct()
 {
     parent::__construct();
     $this->_pages = new \Models\Pages();
     $this->_users = new \Models\Users();
     $this->_welcomes = new \Models\Welcomes();
     \Helpers\Security::require_login();
 }
コード例 #18
0
ファイル: Api.php プロジェクト: davidcm86/simplemvcframework
 /**
  * Call the parent construct
  */
 public function __construct()
 {
     parent::__construct();
     $this->method = $_SERVER['REQUEST_METHOD'];
     $this->entradas = new \Models\Entradas();
     $this->tags = new \Models\Tags();
     $this->entradashastags = new \Models\Entradashastags();
 }
コード例 #19
0
ファイル: Dashboard.php プロジェクト: zszymczyk/intranet
 /**
  * Call the parent construct
  */
 public function __construct()
 {
     parent::__construct();
     if (!Session::get('loggedin')) {
         Url::redirect('login');
     }
     $this->language->load('Dashboard');
 }
コード例 #20
0
ファイル: Artist.php プロジェクト: Oluwafemikorede/gbedu
 public function __construct()
 {
     parent::__construct();
     $this->user_model = new \Models\User();
     $this->album_model = new \Models\Album();
     $this->role_model = new \Models\Role();
     $this->status_model = new \Models\Status();
 }
コード例 #21
0
ファイル: Album.php プロジェクト: Oluwafemikorede/gbedu
 public function __construct()
 {
     parent::__construct();
     $this->albumModel = new \Models\Album();
     $this->status_model = new Status();
     $this->mediaModel = new Media();
     $this->categoryModel = new Category();
 }
コード例 #22
0
ファイル: Base.php プロジェクト: sdgdsffdsfff/open-sesame
 public function handle()
 {
     $aConfig = c\Config::get('dsn');
     u\DB::connect($aConfig['data']);
     $aData = parent::handle();
     $aData['data']['host'] = "http://{$_SERVER['HTTP_HOST']}/?static=";
     return $aData;
 }
コード例 #23
0
 public function __construct()
 {
     parent::__construct();
     $this->model = new \Modules\AdminPanel\Models\AdminPanel();
     $this->forum = new \Modules\AdminPanel\Models\ForumAdmin();
     $this->pages = new \Helpers\Paginator(USERS_PAGEINATOR_LIMIT);
     // How many rows per page
 }
コード例 #24
0
ファイル: BookHotelV2.php プロジェクト: gkawin/siteminder
 public function __construct()
 {
     parent::__construct();
     $this->load->database();
     $this->suppliercode = GetSupplierCode();
     $this->url = config_item(_SITEMINDER_STAGE . '_url');
     save_log_data();
 }
コード例 #25
0
ファイル: Sayfalar.php プロジェクト: stnc/stnc-framework
 public function __construct()
 {
     parent::__construct();
     // footer da da olduğu için buradan verdim
     $this->request = Request::createFromGlobals();
     // dil objelerini set et
     $this->footerDatasi = $data;
 }
コード例 #26
0
ファイル: SiteConnect.php プロジェクト: gkawin/siteminder
 public function __construct()
 {
     parent::__construct();
     $this->load->database();
     $this->load->model('siteminder/LunchServer', 'serv');
     $this->load->model('siteminder/ServerException', 'ex');
     log_message('info', 'Enter: SiteConnect');
 }
コード例 #27
0
ファイル: base.php プロジェクト: phpsa/CoreCMS
 public function __construct()
 {
     parent::__construct();
     if (!isset($this->session->data['api_id'])) {
         $json['error']['warning'] = $this->language->get('error_permission');
         $this->response->addHeader('Content-Type: application/json');
         return $this->response->setOutput(json_encode($json));
     }
 }
コード例 #28
0
ファイル: Update.php プロジェクト: juancabraal/vibesetal
 /**
  * Call the parent construct
  */
 public function __construct()
 {
     parent::__construct();
     $this->user = new \Models\Users();
     $this->post = new \Models\Posts();
     $this->sobre = new \Models\Sobre();
     $this->link = new \Models\Links();
     $this->enquete = new \Models\Enquete();
 }
コード例 #29
0
ファイル: Course.php プロジェクト: egnsh93/cst8257-Project
 /**
  * Call the parent construct
  */
 public function __construct()
 {
     parent::__construct();
     $this->course = new \Models\Course();
     // On page load, redirect if not logged in
     if (\Helpers\Session::get('loggedin') == false) {
         \Helpers\Url::redirect('Login');
     }
 }
コード例 #30
0
 /**
  * Call the parent construct
  */
 public function __construct()
 {
     parent::__construct();
     if (!Auth::isLogged()) {
         Url::redirect('login');
     }
     $this->language->load('groups');
     $this->group = new \Models\Group();
 }