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

PHP Front_Controller类代码示例

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

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



在下文中一共展示了Front_Controller类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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');
 }
开发者ID:fbmfbm,项目名称:drhil01,代码行数:12,代码来源:faq.php


示例2: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('summary_model');
     $this->load->model('financial_stats_model');
     $this->load->model('overview/overview_model');
 }
开发者ID:ibnoe,项目名称:report-mis,代码行数:7,代码来源:summary.php


示例3:

 function __construct()
 {
     parent::__construct();
     //        echo 'test';
     //make sure we're not always behind ssl
     remove_ssl();
 }
开发者ID:devarj,项目名称:design,代码行数:7,代码来源:searchwidget.php


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


示例5:

 function __construct()
 {
     parent::__construct();
     $this->load->model('front/book_m');
     $this->load->helper('file');
     $this->table = 'book_torrent';
 }
开发者ID:NingerJohn,项目名称:vfinder,代码行数:7,代码来源:book.php


示例6:

 function __construct()
 {
     parent::__construct();
     force_ssl();
     $this->load->model(array('location_model'));
     $this->load->helper(array('form', 'url'));
 }
开发者ID:FAVHYAN,项目名称:a3workout,代码行数:7,代码来源:streaming.php


示例7: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('news_model');
     $this->load->helper('news');
     $this->lang->load('news');
 }
开发者ID:remailednet,项目名称:Bonfire-News,代码行数:7,代码来源:news.php


示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('clients_model');
     $this->load->model('clients_pembiayaan_model');
     $this->load->library('pagination');
 }
开发者ID:ibnoe,项目名称:core-mis,代码行数:7,代码来源:creditscoring.php


示例9:

 function __construct()
 {
     parent::__construct();
     $this->load->model('servers_model', 'servers');
     $this->load->model('application_model', 'app');
     $this->load->library('form_validation');
 }
开发者ID:noikiy,项目名称:MySQL-monitor,代码行数:7,代码来源:servers.php


示例10: __construct

 public function __construct()
 {
     parent::__construct();
     // Load helpers.
     $this->load->helper('xml');
     $this->load->helper('text');
 }
开发者ID:Ragash,项目名称:DoveForums,代码行数:7,代码来源:Categories.php


示例11:

 function __construct()
 {
     parent::__construct();
     force_ssl();
     $this->load->model(array('location_model'));
     $this->customer = $this->go_cart->customer();
 }
开发者ID:Joncg,项目名称:eelly_cps_fx,代码行数:7,代码来源:secure.php


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


示例13:

 function __construct()
 {
     parent::__construct();
     $this->load->model('Category_model');
     $this->load->model('Product_model');
     $this->load->model('Option_model');
 }
开发者ID:FAVHYAN,项目名称:a3workout,代码行数:7,代码来源:packages.php


示例14:

 function __construct()
 {
     parent::__construct();
     //make sure we're not always behind ssl
     remove_ssl();
     $this->load->model('Customer_model');
 }
开发者ID:FAVHYAN,项目名称:a3workout,代码行数:7,代码来源:cart.php


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


示例16:

 function __construct()
 {
     parent::__construct();
     $this->load->model("mysql_model", "mysql");
     $this->load->model('application_model', 'app');
     $this->load->model('servers_model', 'server');
 }
开发者ID:noikiy,项目名称:MySQL-monitor,代码行数:7,代码来源:chart.php


示例17: __construct

 /**
  * Constructor
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->model('botan_structure/botan_structure_model');
     $this->lang->load('botan_structure');
     Assets::add_module_js('botan_structure', 'botan_structure.js');
 }
开发者ID:brkrishna,项目名称:freelance,代码行数:12,代码来源:botan_structure.php


示例18: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('user_m');
     $this->load->helper('auth');
     is_login_exit();
 }
开发者ID:phpox,项目名称:LetsBBS,代码行数:7,代码来源:settings.php


示例19:

 function __construct()
 {
     parent::__construct();
     $this->load->library('pagination');
     $this->load->helper('text');
     $this->load->model('Trip_model');
 }
开发者ID:santanumajumdar,项目名称:carpool,代码行数:7,代码来源:otp.php


示例20: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->library('table');
     $this->data['siteOptions'] = $this->siteOptions;
     $this->data['siteContacts'] = $this->siteContacts;
 }
开发者ID:blrik,项目名称:bWorld,代码行数:7,代码来源:Stats.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP Frontend类代码示例发布时间:2022-05-23
下一篇:
PHP FrontReport类代码示例发布时间: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