当前位置: 首页>>代码示例>>PHP>>正文


PHP controller::Controller方法代码示例

本文整理汇总了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');
 }
开发者ID:baltimoreteacher,项目名称:Grading,代码行数:10,代码来源:home.php

示例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');
 }
开发者ID:bteem-admin,项目名称:gt_final,代码行数:10,代码来源:approve_garage_motor.php

示例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');
 }
开发者ID:ccjuantrujillo,项目名称:cepreadm,代码行数:11,代码来源:marca.php

示例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');
     }
 }
开发者ID:baltimoreteacher,项目名称:Grading,代码行数:12,代码来源:grader.php

示例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();
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:14,代码来源:notifica.php

示例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'));
 }
开发者ID:bteem-admin,项目名称:gt_final,代码行数:42,代码来源:claim_documentation.php

示例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');
 }
开发者ID:bteem-admin,项目名称:gt_final,代码行数:39,代码来源:view_policy_cliam_details.php


注:本文中的controller::Controller方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。