• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP MY_Controller类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中MY_Controller的典型用法代码示例。如果您正苦于以下问题:PHP MY_Controller类的具体用法?PHP MY_Controller怎么用?PHP MY_Controller使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了MY_Controller类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: getDiscount

 /**
  * get all activ discount
  * @return array discount
  */
 public function getDiscount()
 {
     $locale = \MY_Controller::getCurrentLocale();
     $time = time();
     $sql = "select *, mod_shop_discounts.id as ids, mod_shop_discounts.id as id\n                from mod_shop_discounts\n                left join mod_shop_discounts_i18n on mod_shop_discounts_i18n.id = mod_shop_discounts.id and mod_shop_discounts_i18n.locale = '{$locale}'\n                where (max_apply > count_apply \n                        or max_apply is null \n                        or (max_apply is null and count_apply is null)\n                        or (count_apply is null and max_apply > 0))\n                      and \n                      (date_begin < '{$time}' and date_end > '{$time}' \n                          or date_begin < '{$time}' and date_end is Null \n                           or date_begin is Null and date_end is Null\n                           or date_begin < '{$time}' and date_end = '0'\n                           or date_begin is null and date_end = '0')\n                      and \n                       active = 1";
     return $this->db->query($sql)->result_array();
 }
开发者ID:NaszvadiG,项目名称:ImageCMS,代码行数:11,代码来源:discount_model_front.php


示例2:

 function __construct()
 {
     parent::__construct();
     $this->load->model('queue_model');
     $this->load->library('rest');
     Requests::register_autoloader();
 }
开发者ID:arbudt,项目名称:semar_server,代码行数:7,代码来源:queue.php


示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('index_model', 'index_model', TRUE);
     $this->load->model('upload_model', 'upload_model', TRUE);
     $this->data['pelajaran_result'] = $this->index_model->get_pelajaran();
 }
开发者ID:RianWardana,项目名称:SuksesPTN,代码行数:7,代码来源:upload.php


示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $this->module = 'dashboard';
     $this->cname = 'dashboard';
     $this->load->model('mdl_grafik', 'mg');
 }
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:7,代码来源:dashboard.php


示例5:

 function __construct()
 {
     parent::__construct();
     $this->no_cache();
     $this->load->model('user_modelsupllier');
     $this->load->library('session');
 }
开发者ID:alienwizard,项目名称:MediahelpCRM,代码行数:7,代码来源:16.5.14dashboardsup.php


示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('usuario_model');
     $this->load->model('paginador_model');
     $this->load->library('pagination');
 }
开发者ID:jratenci,项目名称:dee,代码行数:7,代码来源:usuario.php


示例7: __construct

 public function __construct()
 {
     parent::__construct();
     $log_details = new stdClass();
     stdlog($log_details);
     unset($log_details);
 }
开发者ID:Opmantek,项目名称:open-audit,代码行数:7,代码来源:admin_location.php


示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model(array('MOrder', 'MCustomer', 'MWorkflow_log', 'MLocation'));
     $this->load->helper(array('money_helper'));
     $this->load->library(array('form_validation', 'filter_orders', 'order_split'));
 }
开发者ID:OranTing,项目名称:gdby_github_repo,代码行数:7,代码来源:suborder.php


示例9: __construct

 /**
  * 
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->model("usuario_model", "_usuario_model");
     $this->load->model("usuario2_model", "_usuario2_model");
     $this->load->model("usuario_region_model", "_usuario_region_model");
 }
开发者ID:CarlosAyala,项目名称:midas-codeigniter-modulo-emergencias,代码行数:10,代码来源:migracion.php


示例10: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->database();
     $this->load->helper('url');
     $this->load->library('session');
 }
开发者ID:wisnuwidi,项目名称:Codex,代码行数:7,代码来源:Examples.php


示例11:

 function __construct()
 {
     parent::__construct();
     $this->session->set_userdata("link_id", "index");
     $this->session->set_userdata("linkSub", "visit_management");
     $this->session->set_userdata("linkTitle", "Visit Purpose Management");
 }
开发者ID:OmondiKevin,项目名称:ADT_MTRH,代码行数:7,代码来源:visit_management.php


示例12: __construct

 public function __construct()
 {
     parent::__construct();
     $admin_info = $this->session->userdata('admin_session');
     $params['admin_info'] = $admin_info;
     $this->load->vars($params);
 }
开发者ID:siqitech,项目名称:kerdou,代码行数:7,代码来源:Main.php


示例13: isset

 function __construct()
 {
     parent::__construct();
     $this->load->model('penukaran_point_member_model');
     $this->load->model('setting_penukaran_point_model');
     $this->offset = isset($_POST['start']) ? $this->db->escape_str($this->input->post('start', TRUE)) : 0;
     $this->limit = isset($_POST['limit']) ? $this->db->escape_str($this->input->post('limit', TRUE)) : $this->config->item("length_records");
     $this->search = isset($_POST['query']) ? $this->db->escape_str($this->input->post('query', TRUE)) : '';
     $this->kdMember = isset($_POST['kd_member']) ? $this->db->escape_str($this->input->post('kd_member', TRUE)) : FALSE;
     $this->jumlahPointTukar = isset($_POST['jumlah_point_ditukar']) ? $this->db->escape_str($this->input->post('jumlah_point_ditukar', TRUE)) : FALSE;
     $this->pointMember = isset($_POST['point_member']) ? $this->db->escape_str($this->input->post('point_member', TRUE)) : FALSE;
     $this->tanggal = date('Y-m-d H:i:s');
     $this->keterangan = 'keterangan';
     $this->createdBy = $this->session->userdata('username');
     $this->createdDate = date('Y-m-d H:i:s');
     $this->updatedBy = $this->session->userdata('username');
     $this->updatedDate = date('Y-m-d H:i:s');
     $this->data = isset($_POST['data']) ? json_decode($this->input->post('data', TRUE)) : array();
     //generate no bukti
     $current_date = date('Ym');
     $no_ret = 'TP' . $current_date . '-';
     $sequence = $this->penukaran_point_member_model->get_kode_sequence($no_ret, 3);
     $this->noBukti = $no_ret . $sequence;
     //end of generate no bukti
 }
开发者ID:ibnoe,项目名称:appymz,代码行数:25,代码来源:penukaran_point_member_controller.php


示例14: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('house_model');
     $this->load->model('financials_model');
     $this->load->model('projects_model');
 }
开发者ID:NaszvadiG,项目名称:kiss-manage,代码行数:7,代码来源:Dashboard.php


示例15: __construct

 public function __construct()
 {
     parent::__construct();
     $this->module = 'stok_bahan';
     $this->cname = $this->module . '/input';
     $this->load->model('mdl_input', 'mp');
 }
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:7,代码来源:input.php


示例16:

 function __construct()
 {
     parent::__construct();
     $this->_check_permissions();
     $this->form_validation->set_error_delimiters('<p class="help-block">', '</p>');
     $this->data['folder_name'] = 'admin/gateways/';
 }
开发者ID:roncodes,项目名称:bitsy-crm,代码行数:7,代码来源:gateways.php


示例17:

 function __construct()
 {
     parent::__construct();
     //session_start();
     $this->lang->load("title", "english");
     $this->load->helper('breadcrumb_helper');
 }
开发者ID:jhnrustan,项目名称:shopback,代码行数:7,代码来源:Frontend_Controller.php


示例18: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->helper("url");
     $this->load->helper('mail_helper');
     $this->load->model("mcontact");
 }
开发者ID:bachnx92,项目名称:vemaybay,代码行数:7,代码来源:customer_contact.php


示例19:

 function __construct()
 {
     parent::__construct();
     $this->load->model('ProjectModel');
     $this->load->model('ProfileModel');
     //$this->load->model('LoggerModel');
 }
开发者ID:refractiveco,项目名称:natureslibrary,代码行数:7,代码来源:app.php


示例20: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('attendance_model');
     $this->load->helper('form');
     $this->load->library('validation');
 }
开发者ID:ardendeveloper,项目名称:system_draft,代码行数:7,代码来源:attendance.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP MY_Lang类代码示例发布时间:2022-05-23
下一篇:
PHP MYSQL类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap