本文整理汇总了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');
}
示例2: __construct
public function __construct()
{
parent::__construct();
$this->load->library('customer');
$this->load->model('Orders_model');
$this->load->model('Paypal_model');
}
示例3: __construct
public function __construct()
{
parent::__construct();
$this->load->helper('form');
$this->load->library('form_validation');
$this->load->model('Utilisateur_model');
}
示例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);
}
示例5: __construct
public function __construct()
{
parent::__construct();
$this->themes->validator_enabled = TRUE;
// Is the Admin Logged In?
$this->logged_in = Auth::instance()->logged_in();
}
示例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');
}
示例7: View
function __construct()
{
parent::__construct();
// Javascript Header
$this->template->header->validator_enabled = TRUE;
$this->template->content = new View('static/' . $this->default);
}
示例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');
}
示例9: __construct
public function __construct()
{
parent::__construct();
$this->load->model('Orders_model');
$this->load->model('Addresses_model');
$this->load->model('Countries_model');
}
示例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');
}
示例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();
}
示例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');
}
示例13: __construct
public function __construct()
{
parent::__construct();
// calls the constructor
$this->load->library('customer');
// loads language file
$this->lang->load('account_module/account_module');
}
示例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;
}
示例15: __construct
public function __construct()
{
parent::__construct();
// calls the constructor
$this->load->model('Pages_model');
$this->load->library('user');
// load the user library
}