本文整理汇总了PHP中Front_Controller类的典型用法代码示例。如果您正苦于以下问题:PHP Front_Controller类的具体用法?PHP Front_Controller怎么用?PHP Front_Controller使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Front_Controller类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Constructor
*
* @return void
*/
public function __construct()
{
parent::__construct();
$this->load->library('form_validation');
$this->lang->load('faq');
Assets::add_module_js('faq', 'faq.js');
}
示例2: __construct
public function __construct()
{
parent::__construct();
$this->load->model('summary_model');
$this->load->model('financial_stats_model');
$this->load->model('overview/overview_model');
}
示例3:
function __construct()
{
parent::__construct();
// echo 'test';
//make sure we're not always behind ssl
remove_ssl();
}
示例4: redirect
function __construct()
{
parent::__construct();
/*make sure the cart isnt empty*/
if ($this->jcart->total_items() == 0) {
redirect('cart/view_cart');
}
/*is the user required to be logged in?*/
if (config_item('require_login')) {
$this->Customer_model->is_logged_in('checkout');
}
if (!config_item('allow_os_purchase') && config_item('inventory_enabled')) {
/*double check the inventory of each item before proceeding to checkout*/
$inventory_check = $this->jcart->check_inventory();
if ($inventory_check) {
/*
OOPS we have an error. someone else has gotten the scoop on our customer and bought products out from under them!
we need to redirect them to the view cart page and let them know that the inventory is no longer there.
*/
$this->session->set_flashdata('error', $inventory_check);
redirect('cart/view_cart');
}
}
/* Set no caching
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
*/
$this->load->library('form_validation');
}
示例5:
function __construct()
{
parent::__construct();
$this->load->model('front/book_m');
$this->load->helper('file');
$this->table = 'book_torrent';
}
示例6:
function __construct()
{
parent::__construct();
force_ssl();
$this->load->model(array('location_model'));
$this->load->helper(array('form', 'url'));
}
示例7: __construct
public function __construct()
{
parent::__construct();
$this->load->model('news_model');
$this->load->helper('news');
$this->lang->load('news');
}
示例8: __construct
public function __construct()
{
parent::__construct();
$this->load->model('clients_model');
$this->load->model('clients_pembiayaan_model');
$this->load->library('pagination');
}
示例9:
function __construct()
{
parent::__construct();
$this->load->model('servers_model', 'servers');
$this->load->model('application_model', 'app');
$this->load->library('form_validation');
}
示例10: __construct
public function __construct()
{
parent::__construct();
// Load helpers.
$this->load->helper('xml');
$this->load->helper('text');
}
示例11:
function __construct()
{
parent::__construct();
force_ssl();
$this->load->model(array('location_model'));
$this->customer = $this->go_cart->customer();
}
示例12: redirect
function __construct()
{
parent::__construct();
force_ssl();
/* make sure the cart isnt empty */
if ($this->go_cart->total_items() == 0) {
redirect('cart/view_cart');
}
/* is the user required to be logged in? */
if (config_item('require_login')) {
$this->Customer_model->is_logged_in('checkout');
}
if (!config_item('allow_os_purchase') && config_item('inventory_enabled')) {
/* double check the inventory of each item before proceeding to checkout */
$inventory_check = $this->go_cart->check_inventory();
if ($inventory_check) {
/*
OOPS we have an error. someone else has gotten the scoop on our customer and bought products out from under them!
we need to redirect them to the view cart page and let them know that the inventory is no longer there.
*/
$this->session->set_flashdata('error', $inventory_check);
redirect('cart/view_cart');
}
}
$this->load->library('form_validation');
}
示例13:
function __construct()
{
parent::__construct();
$this->load->model('Category_model');
$this->load->model('Product_model');
$this->load->model('Option_model');
}
示例14:
function __construct()
{
parent::__construct();
//make sure we're not always behind ssl
remove_ssl();
$this->load->model('Customer_model');
}
示例15: __construct
public function __construct()
{
parent::__construct();
log_message('debug', 'Users Controller Initialized');
$this->load->model('users_model');
$this->load->helper(array('cookie', 'form', 'date', 'html'));
}