當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CI::lang方法代碼示例

本文整理匯總了PHP中CI::lang方法的典型用法代碼示例。如果您正苦於以下問題:PHP CI::lang方法的具體用法?PHP CI::lang怎麽用?PHP CI::lang使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CI的用法示例。


在下文中一共展示了CI::lang方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     \CI::auth()->check_access('Admin', true);
     \CI::load()->model(['Categories', 'Products', 'Pages']);
     \CI::lang()->load('sitemap');
 }
開發者ID:lekhangyahoo,項目名稱:gonline,代碼行數:7,代碼來源:AdminSitemap.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     \CI::load()->model(array('Customers', 'Locations'));
     \CI::load()->helper('formatting_helper');
     \CI::lang()->load('customers');
 }
開發者ID:thijmenvenus,項目名稱:GoCart3,代碼行數:7,代碼來源:AdminCustomers.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     \CI::auth()->check_access('Admin', true);
     \CI::load()->model('Locations');
     \CI::lang()->load('locations');
 }
開發者ID:lekhangyahoo,項目名稱:gonline,代碼行數:7,代碼來源:AdminLocations.php

示例4: __construct

 function __construct()
 {
     parent::__construct();
     \CI::auth()->check_access('Admin', true);
     \CI::lang()->load('categories');
     \CI::load()->model('Categories');
 }
開發者ID:buzkall,項目名稱:GoCart3,代碼行數:7,代碼來源:AdminCategories.php

示例5: index

 public function index($slug, $sort = 'id', $dir = "ASC", $page = 0)
 {
     \CI::lang()->load('categories');
     //define the URL for pagination
     $pagination_base_url = site_url('category/' . $slug . '/' . $sort . '/' . $dir);
     //how many products do we want to display per page?
     //this is configurable from the admin settings page.
     $per_page = config_item('products_per_page');
     //grab the categories
     $categories = \CI::Categories()->get($slug, $sort, $dir, $page, $per_page);
     //no category? show 404
     if (!$categories) {
         throw_404();
         return;
     }
     $categories['sort'] = $sort;
     $categories['dir'] = $dir;
     $categories['slug'] = $slug;
     $categories['page'] = $page;
     //load up the pagination library
     \CI::load()->library('pagination');
     $config['base_url'] = $pagination_base_url;
     $config['uri_segment'] = 5;
     $config['per_page'] = $per_page;
     $config['num_links'] = 3;
     $config['total_rows'] = $categories['total_products'];
     \CI::pagination()->initialize($config);
     //load the view
     $this->view('categories/category', $categories);
 }
開發者ID:lekhangyahoo,項目名稱:gonline,代碼行數:30,代碼來源:Category.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     \CI::load()->model('GiftCards');
     \CI::load()->helper('form');
     \CI::load()->library('form_validation');
     \CI::lang()->load('gift_cards');
 }
開發者ID:lekhangyahoo,項目名稱:gonline,代碼行數:8,代碼來源:AdminGiftCards.php

示例7: __construct

 function __construct()
 {
     parent::__construct();
     \CI::auth()->check_access('Admin', true);
     \CI::load()->model(['Orders', 'Search']);
     \CI::load()->helper(array('formatting'));
     \CI::lang()->load('reports');
 }
開發者ID:lekhangyahoo,項目名稱:gonline,代碼行數:8,代碼來源:AdminReports.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     \CI::auth()->check_access('Admin', true);
     \CI::load()->model('Coupons');
     \CI::load()->model('products');
     \CI::lang()->load('coupons');
 }
開發者ID:lekhangyahoo,項目名稱:gonline,代碼行數:8,代碼來源:AdminCoupons.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     \CI::auth()->check_access('Admin', true);
     \CI::load()->model(['Messages', 'Pages', 'Locations']);
     \CI::lang()->load('settings');
     \CI::load()->helper('inflector');
 }
開發者ID:lekhangyahoo,項目名稱:gonline,代碼行數:8,代碼來源:AdminSettings.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     \CI::auth()->check_access('Admin', true);
     //load the admin language file in
     \CI::lang()->load('users');
     $this->current_admin = \CI::session()->userdata('admin');
 }
開發者ID:lekhangyahoo,項目名稱:gonline,代碼行數:8,代碼來源:AdminUsers.php

示例11: __construct

 public function __construct()
 {
     parent::__construct();
     \CI::auth()->check_access('Admin', true);
     \CI::load()->model(['Products', 'Categories']);
     \CI::load()->helper('form');
     \CI::lang()->load('products');
 }
開發者ID:lekhangyahoo,項目名稱:gonline,代碼行數:8,代碼來源:AdminMaterials.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     \CI::load()->model('Orders');
     \CI::load()->model('Search');
     \CI::load()->model('Locations');
     \CI::load()->helper(array('formatting'));
     \CI::lang()->load('orders');
 }
開發者ID:lekhangyahoo,項目名稱:gonline,代碼行數:9,代碼來源:AdminOrders.php

示例13: index

 public function index()
 {
     \CI::auth()->check_access('Admin', true);
     \CI::lang()->load('settings');
     \CI::load()->helper('inflector');
     global $shippingModules;
     $data['shipping_modules'] = $shippingModules;
     $data['enabled_modules'] = \CI::Settings()->get_settings('shipping_modules');
     $data['page_title'] = lang('common_shipping_modules');
     $this->view('shipping_index', $data);
 }
開發者ID:lekhangyahoo,項目名稱:gonline,代碼行數:11,代碼來源:AdminShipping.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
     if (\CI::auth()->check_access('Orders')) {
         redirect(config_item('admin_folder') . '/orders');
     }
     \CI::load()->model('Orders');
     \CI::load()->model('Customers');
     \CI::load()->helper('date');
     \CI::lang()->load('dashboard');
 }
開發者ID:lekhangyahoo,項目名稱:gonline,代碼行數:11,代碼來源:AdminDashboard.php

示例15: index

 public function index()
 {
     \CI::auth()->check_access('Admin', true);
     \CI::lang()->load('settings');
     \CI::load()->helper('inflector');
     global $paymentModules;
     //Payment Information
     $payment_order = \CI::Settings()->get_settings('payment_order');
     $data['payment_modules'] = $paymentModules;
     $data['enabled_modules'] = \CI::Settings()->get_settings('payment_modules');
     $data['page_title'] = lang('common_payment_modules');
     $this->view('payment_index', $data);
 }
開發者ID:haouach,項目名稱:GoCart3,代碼行數:13,代碼來源:AdminPayments.php


注:本文中的CI::lang方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。