本文整理汇总了PHP中controller::Controller方法的典型用法代码示例。如果您正苦于以下问题:PHP controller::Controller方法的具体用法?PHP controller::Controller怎么用?PHP controller::Controller使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类controller
的用法示例。
在下文中一共展示了controller::Controller方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Home
function Home()
{
parent::Controller();
$this->load->model('home_model');
$this->load->model('user_model');
$this->load->model('admin_model');
$this->load->helper('check_login');
$this->load->helper('breadcrumb');
//$this->load->library('Adodbx');
}
示例2: redirect
function Approve_garage_motor()
{
parent::Controller();
if ($this->session->userdata('user_logged') != "yes:takafuluser" || !in_array('claims_level_1_approval', $this->session->userdata('access'))) {
redirect(base_url() . 'index.php/home');
exit;
}
$this->load->model('claims/claims_motor_private_model');
$this->load->model('claims/common_model');
}
示例3: __construct
public function __construct()
{
parent::Controller();
$this->load->helper('html');
$this->load->helper('url');
$this->load->library('pagination');
$this->load->library('html');
$this->load->library('form_validation');
$this->load->model('almacen/marca_model');
$this->somevar['compania'] = $this->session->userdata('compania');
}
示例4: Grader
function Grader()
{
parent::Controller();
$this->load->model('home_model');
$this->load->model('user_model');
$this->load->model('admin_model');
$this->load->helper('check_login');
$this->load->helper('breadcrumb');
if (!user_login()) {
redirect('main/home/user_login');
}
}
示例5: notifica
function notifica()
{
parent::Controller();
$this->load->library('rapyd');
$this->config->load('notifica');
$this->error = '';
$this->adjuntos = null;
$this->embededimage = array();
$this->msj = '';
$this->tipo = 'txt';
$this->nmonit = true;
//Colocar en false para obmitir el mensaje de cuenta no monitoreada
$this->instalar();
}
示例6: redirect
function Claim_documentation()
{
ob_start();
parent::Controller();
if ($this->session->userdata('user_logged') != "yes:takafuluser" || !in_array('claims_access', $this->session->userdata('access'))) {
redirect(base_url() . 'index.php/home');
exit;
}
if (isset($_GET['bl'])) {
$enc_business_line = $this->input->get('bl');
$dc_business_line = base64_decode($enc_business_line);
switch ($dc_business_line) {
case 1:
$this->load->model('claims/claims_motor_private_model', 'claim_model');
break;
case 2:
$this->load->model('claims/claims_fire_model', 'claim_model');
break;
case 3:
$this->load->model('claims/claims_theft_model', 'claim_model');
break;
case 4:
$this->load->model('claims/claims_general_model', 'claim_model');
break;
case 5:
$this->load->model('claims/claims_liability_model', 'claim_model');
break;
case 6:
$this->load->model('claims/claims_engg_model', 'claim_model');
break;
case 7:
$this->load->model('claims/claims_misc_model', 'claim_model');
break;
case 8:
$this->load->model('claims/claims_marine_model', 'claim_model');
break;
}
}
$this->load->model('claims/common_model');
$this->load->model('claims/claim_documentation_model');
$this->load->helper(array('form', 'url'));
}
示例7: redirect
function View_policy_cliam_details()
{
parent::Controller();
if ($this->session->userdata('user_logged') != "yes:takafuluser") {
redirect(base_url() . 'index.php/home');
exit;
}
if (isset($_GET['bl'])) {
$enc_business_line = $this->input->get('bl');
$dc_business_line = base64_decode($enc_business_line);
switch ($dc_business_line) {
case 1:
$this->load->model('claims/claims_motor_private_model', 'claim_model');
break;
case 2:
$this->load->model('claims/claims_fire_model', 'claim_model');
break;
case 3:
$this->load->model('claims/claims_theft_model', 'claim_model');
break;
case 4:
$this->load->model('claims/claims_general_model', 'claim_model');
break;
case 5:
$this->load->model('claims/claims_liability_model', 'claim_model');
break;
case 6:
$this->load->model('claims/claims_engg_model', 'claim_model');
break;
case 7:
$this->load->model('claims/claims_misc_model', 'claim_model');
break;
case 8:
$this->load->model('claims/claims_marine_model', 'claim_model');
break;
}
}
$this->load->model('claims/common_model');
}