本文整理汇总了PHP中ApplicationBase::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP ApplicationBase::__construct方法的具体用法?PHP ApplicationBase::__construct怎么用?PHP ApplicationBase::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ApplicationBase
的用法示例。
在下文中一共展示了ApplicationBase::__construct方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
// parent constructor
parent::__construct();
// load model
$this->load->model('m_registration');
$this->load->model('m_airlines');
$this->load->model('m_airport');
$this->load->model('m_service_code');
$this->load->model('m_files');
$this->load->model('m_email');
$this->load->model('m_disclaimer');
$this->load->model('m_block');
// load library
$this->load->library('tnotification');
$this->load->library('session');
$this->load->library('pagination');
// check status bayar
$result = $this->m_registration->get_fa_unpaid(array($this->com_user['airlines_id'], date('Y-m-d')));
if ($result > 0) {
// notification
$this->tnotification->sent_notification("error", "Silahkan Membayar FA yang telah terbit terlebih dahulu");
redirect('member/welcome');
}
// get airlines type
$result = $this->m_registration->get_airlines_type(array($this->com_user['airlines_id']));
foreach ($result as $value) {
$data[] = $value['airlines_type'];
}
if (!in_array("bukan niaga", $data)) {
// notification
$this->tnotification->sent_notification("error", "Anda Tidak Dapat Melakukan Registrasi Bukan Niaga");
redirect('member/welcome');
}
}
示例2: __construct
public function __construct()
{
// parent constructor
parent::__construct();
// exit
redirect('home/welcome');
}
示例3: __construct
public function __construct()
{
// parent constructor
parent::__construct();
// load model
// $this->load->model('m_member');
// $this->load->model('m_izin');
// $this->load->model('m_block');
// load library
$this->load->library('tnotification');
// get airlines type
// $result = $this->m_member->get_airlines_type(array($this->com_user['airlines_id']));
// foreach ($result as $value) {
// $data[] = $value['airlines_type'];
// }
// // airlines berjadwal
// if (in_array("berjadwal", $data)) {
// $this->berjadwal = true;
// }
// // airlines tidak berjadwal
// if (in_array("tidak berjadwal", $data)) {
// $this->tidak_berjadwal = true;
// }
// // airlines bukan niaga
// if (in_array("bukan niaga", $data)) {
// $this->bukan_niaga = true;
// }
}
示例4: __construct
public function __construct()
{
parent::__construct();
// load model
// load library
// load helpers
}
示例5: __construct
public function __construct()
{
parent::__construct();
// load models
$this->load->model('dataibu/m_rencanapersalinan');
$this->load->library('pagination');
$this->load->library('tnotification');
}
示例6: __construct
public function __construct()
{
// parent constructor
parent::__construct();
// load
$this->load->model('m_settings');
$this->load->library('tnotification');
}
示例7: __construct
public function __construct()
{
parent::__construct();
// load model
// load library
$this->load->library('tnotification');
$this->load->library('datetimemanipulation');
}
示例8: __construct
public function __construct()
{
// parent constructor
parent::__construct();
// load model
$this->load->model('m_dashboard');
// exit
redirect('home/welcome');
}
示例9: __construct
public function __construct()
{
// parent constructor
parent::__construct();
// load global
$this->load->library('tnotification');
$this->smarty->load_javascript("resource/js/jcryption/jquery.min.js");
$this->smarty->load_javascript("resource/js/jcryption/jquery.jcryption.3.1.0.js");
}
示例10: __construct
public function __construct()
{
parent::__construct();
// load model
$this->load->model("regulator/m_task");
$this->load->model("m_email");
// load library
$this->load->library("tnotification");
}
示例11:
function __construct()
{
parent::__construct();
// load model
$this->load->model('pengaturan/m_preference');
// load library
$this->load->library('tnotification');
// load library
$this->load->library('pagination');
}