public function __construct() { parent::__construct(); $this->load->database(); $this->load->helper(array('view', 'tools')); save_log_data(); }
function __construct() { parent::__construct(); if ($this->uid) { $this->redirect('/?m=home'); } }
public function __construct() { parent::__construct(); $this->_files = $this->loadModel('model_files'); $this->_user = $this->loadModel('model_user'); $this->checkCookie(); }
/** * Call the parent construct */ public function __construct() { parent::__construct(); $this->language->load('Welcome'); $this->users = new \Models\Users(); $this->userLogged(); }
public function __construct() { parent::__construct(); if ($this->uid) { $this->redirect('/?'); } }
public function __construct() { parent::__construct(); $this->locale->load('Welcome'); // Model can be initialized in constructur // $this->model = new \Modules\Test\Models\SampleModelInModule(); }
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'); }
/** * 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; }
public function __construct() { parent::__construct(); $this->audit = new \Models\Audit(); $this->users = new \Models\Users(); $this->keys = new \Models\Keys(); }
/** * Call the parent construct */ public function __construct() { parent::__construct(); $this->language->load('Welcome'); $this->_pages = new \Models\Pages(); $this->_welcomes = new \Models\Welcomes(); }
public function __construct() { parent::__construct(); $this->loadModel('messageModel'); $this->loadModel('pageModel'); $this->loadModel('slideModel'); }
/** * Call the parent construct */ public function __construct() { parent::__construct(); $this->entradas = new \Models\Entradas(); $this->tags = new \Models\Tags(); $this->entradashastags = new \Models\Entradashastags(); }
public function __construct() { parent::__construct(); if (!Session::get('loggedin')) { Url::redirect('login'); } }
function __construct() { parent::__construct(); if (!$this->uid) { $this->redirect('/?m=member&c=login'); } }
public function __construct() { parent::__construct(); $this->load->database(); $this->load->model('travflex/search_model'); $this->load->helper(array('view', 'tools')); save_log_data(); }
public function __construct() { parent::__construct(); if (!Session::get('loggedin')) { Url::redirect('admin-login'); } $this->_model = new \App\Models\Administrador(); }
/** * 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(); }
/** * 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(); }
/** * Call the parent construct */ public function __construct() { parent::__construct(); if (!Session::get('loggedin')) { Url::redirect('login'); } $this->language->load('Dashboard'); }
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(); }
public function __construct() { parent::__construct(); $this->albumModel = new \Models\Album(); $this->status_model = new Status(); $this->mediaModel = new Media(); $this->categoryModel = new Category(); }
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; }
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 }
public function __construct() { parent::__construct(); $this->load->database(); $this->suppliercode = GetSupplierCode(); $this->url = config_item(_SITEMINDER_STAGE . '_url'); save_log_data(); }
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; }
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'); }
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)); } }
/** * 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(); }
/** * 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'); } }
/** * Call the parent construct */ public function __construct() { parent::__construct(); if (!Auth::isLogged()) { Url::redirect('login'); } $this->language->load('groups'); $this->group = new \Models\Group(); }