本文整理汇总了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']);
}
示例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');
}
示例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');
}
示例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']);
}
示例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']);
}
示例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');
}
示例7: load_view
function load_view($view_path, $view_args = array())
{
view::load_view($view_path, $view_args);
}
示例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');
}