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


PHP view::load_view方法代碼示例

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


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

示例1: add

 public function add()
 {
     view::load_view('default/standard/header');
     view::load_view('default/standard/menu');
     view::load_view('default/pizza/add');
     view::load_view('default/standard/footer');
     unset($_SESSION['request']);
 }
開發者ID:jabouzi,項目名稱:pizza,代碼行數:8,代碼來源:pizza.php

示例2: index

 public function index()
 {
     $data['email'] = get_item($_POST, 'email');
     $data['password'] = get_item($_POST, 'password');
     view::load_view('default/standard/header');
     view::load_view('default/standard/menu');
     view::load_view('default/login/form', $data);
     view::load_view('default/standard/footer');
 }
開發者ID:jabouzi,項目名稱:projet,代碼行數:9,代碼來源:login.php

示例3: password

 public function password()
 {
     $encrypt = new encryption();
     $data['email'] = get_item($_POST, 'email');
     $data['title'] = lang('title.password');
     view::load_view('default/standard/header', $data);
     view::load_view('default/standard/menu');
     view::load_view('default/login/password', $data);
     view::load_view('default/standard/footer');
 }
開發者ID:jabouzi,項目名稱:usermanager,代碼行數:10,代碼來源:login.php

示例4: edit

 public function edit($id)
 {
     if ($id == $_SESSION['user']['id']) {
         redirect('admin/profile');
     }
     $user = $this->adminmodel->get_user($this->adminmodel->get_email_by_id($id));
     $data['user'] = $user;
     $_SESSION['admin_edit'] = $user->__toArray();
     view::load_view('default/standard/header');
     view::load_view('default/standard/menu');
     view::load_view('default/admins/edit', $data);
     view::load_view('default/standard/footer');
     unset($_SESSION['request']);
 }
開發者ID:jabouzi,項目名稱:projet,代碼行數:14,代碼來源:admin.php

示例5: search

 public function search()
 {
     $_SESSION['request'] = $_POST;
     $_SESSION['request']['phone'] = preg_replace("/[^0-9]/", "", $_SESSION['request']['phone']);
     $customers = $this->customermodel->get_by_phone($_SESSION['request']['phone']);
     if (empty($customers)) {
         $_SESSION['request']['customer_id'] = 0;
         redirect('pizza/add');
     }
     $data['customers'] = $customers;
     view::load_view('default/standard/header');
     view::load_view('default/standard/menu');
     view::load_view('default/pizza/customerlist', $data);
     view::load_view('default/standard/footer');
     unset($_SESSION['request']);
 }
開發者ID:jabouzi,項目名稱:pizza,代碼行數:16,代碼來源:customer.php

示例6: import

 public function import()
 {
     $data['title'] = lang('title.import.accounts');
     view::load_view('default/standard/header', $data);
     view::load_view('default/standard/menu');
     view::load_view('default/accounts/import');
     view::load_view('default/standard/footer');
 }
開發者ID:jabouzi,項目名稱:usermanager,代碼行數:8,代碼來源:application.php

示例7: load_view

 function load_view($view_path, $view_args = array())
 {
     view::load_view($view_path, $view_args);
 }
開發者ID:jabouzi,項目名稱:usermanager,代碼行數:4,代碼來源:controller.php

示例8: import

 public function import()
 {
     view::load_view('default/standard/header');
     view::load_view('default/standard/menu');
     view::load_view('default/accounts/import');
     view::load_view('default/standard/footer');
 }
開發者ID:jabouzi,項目名稱:projet,代碼行數:7,代碼來源:application.php


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