当前位置: 首页>>代码示例>>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;未经允许,请勿转载。