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


PHP Main_Controller类代码示例

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


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

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     //  calls the constructor
     $this->load->model('Pages_model');
     $this->lang->load('account/login_register');
 }
开发者ID:AKCore,项目名称:TastyIgniter,代码行数:7,代码来源:Register.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->library('customer');
     $this->load->model('Orders_model');
     $this->load->model('Paypal_model');
 }
开发者ID:ududsha,项目名称:TastyIgniter,代码行数:7,代码来源:Paypal_express.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->helper('form');
     $this->load->library('form_validation');
     $this->load->model('Utilisateur_model');
 }
开发者ID:vincbon,项目名称:GestionTrans,代码行数:7,代码来源:Connexion.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     // Set the general timezone
     $timezone = $this->redis->get("minera_timezone") ? $this->redis->get("minera_timezone") : 'Europe/Rome';
     date_default_timezone_set($timezone);
 }
开发者ID:cryptocoinx,项目名称:minera,代码行数:7,代码来源:app.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     $this->themes->validator_enabled = TRUE;
     // Is the Admin Logged In?
     $this->logged_in = Auth::instance()->logged_in();
 }
开发者ID:rjmackay,项目名称:Ushahidi-plugin-sharing_two,代码行数:7,代码来源:sharing.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     //  calls the constructor
     if (!$this->customer->isLogged()) {
         // if customer is not logged in redirect to account login page
         redirect('account/login');
     }
     $this->load->model('Pages_model');
     $this->load->model('Customers_model');
     // load the customers model
     $this->load->model('Addresses_model');
     // load the addresses model
     $this->load->model('Security_questions_model');
     // load the security questions model
     $this->load->model('Messages_model');
     // load the messages model
     $this->load->model('Orders_model');
     // load the orders model
     $this->load->model('Reservations_model');
     // load the reservations model
     $this->load->library('cart');
     // load the cart library
     $this->load->library('currency');
     // load the currency library
     $this->load->library('country');
     $this->lang->load('account/account');
 }
开发者ID:tastyigniter,项目名称:tastyigniter,代码行数:28,代码来源:Account.php

示例7: View

 function __construct()
 {
     parent::__construct();
     // Javascript Header
     $this->template->header->validator_enabled = TRUE;
     $this->template->content = new View('static/' . $this->default);
 }
开发者ID:kiirti,项目名称:Ushahidi_MHI,代码行数:7,代码来源:static.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('Orders_model');
     $this->load->model('paypal_express/Paypal_model');
     $this->lang->load('paypal_express/paypal_express');
 }
开发者ID:tastyigniter,项目名称:tastyigniter,代码行数:7,代码来源:Paypal_express.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('Orders_model');
     $this->load->model('Addresses_model');
     $this->load->model('Countries_model');
 }
开发者ID:tastyigniter,项目名称:tastyigniter,代码行数:7,代码来源:Authorize_net_aim.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     //  calls the constructor
     $this->load->model('Pages_model');
     $this->load->model('Addresses_model');
     // load the addresses model
     $this->load->model('Orders_model');
     // load the orders model
     $this->load->model('Locations_model');
     // load the locations model
     $this->load->model('Countries_model');
     $this->load->model('Extensions_model');
     $this->load->library('customer');
     // load the customer library
     $this->load->library('cart');
     // load the cart library
     $this->load->library('location');
     // load the location library
     $this->load->library('currency');
     // load the currency library
     $this->load->library('country');
     // load the currency library
     $this->load->library('user_agent');
     $this->lang->load('checkout');
 }
开发者ID:ududsha,项目名称:TastyIgniter,代码行数:26,代码来源:Checkout.php

示例11: __construct

 /**
  * Function: __construct
  *
  * Description: A default constructor that sets instance variables.
  *
  * Views:enhancedmap/iframe_map_header, enhancedmap/iframe_map_footer
  *
  * Results: Instance variables are set
  */
 public function __construct()
 {
     parent::__construct();
     // Load cache
     $this->cache = new Cache();
     // Load Session
     $this->session = Session::instance();
     $this->themes->map_enabled = TRUE;
     $this->themes->slider_enabled = TRUE;
     // Load Header & Footer
     $this->template->header = new View('enhancedmap/iframe_map_header');
     $this->template->footer = new View('enhancedmap/iframe_map_footer');
     // Set Table Prefix
     $this->table_prefix = Kohana::config('database.default.table_prefix');
     // Retrieve Default Settings
     $site_name = Kohana::config('settings.site_name');
     // Prevent Site Name From Breaking up if its too long
     // by reducing the size of the font
     if (strlen($site_name) > 20) {
         $site_name_style = " style=\"font-size:21px;\"";
     } else {
         $site_name_style = "";
     }
     $this->template->header->site_name = $site_name;
     $this->template->header->site_name_style = $site_name_style;
     $this->template->header->site_tagline = Kohana::config('settings.site_tagline');
     $this->template->header->this_page = "";
     $this->template->footer->footer_block = $this->themes->footer_block();
 }
开发者ID:rjmackay,项目名称:enhancedmap,代码行数:38,代码来源:iframemap.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('Reservation_model');
     $this->load->model('Inscription_model');
     $this->load->library('form_validation');
     $this->load->helper('form');
 }
开发者ID:vincbon,项目名称:GestionTrans,代码行数:8,代码来源:Reservations.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     // calls the constructor
     $this->load->library('customer');
     // loads language file
     $this->lang->load('account_module/account_module');
 }
开发者ID:labeetotrent,项目名称:latthiya,代码行数:8,代码来源:Account_module.php

示例14:

 function __construct()
 {
     parent::__construct();
     // Javascript Header
     $this->template->header->validator_enabled = TRUE;
     // Is the Admin Logged In?
     $this->logged_in = Auth::instance()->logged_in() ? TRUE : FALSE;
 }
开发者ID:kiirti,项目名称:Ushahidi_MHI,代码行数:8,代码来源:reports.php

示例15: __construct

 public function __construct()
 {
     parent::__construct();
     //  calls the constructor
     $this->load->model('Pages_model');
     $this->load->library('user');
     // load the user library
 }
开发者ID:labeetotrent,项目名称:latthiya,代码行数:8,代码来源:Pages.php


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