当前位置: 首页>>代码示例>>PHP>>正文


PHP load_view函数代码示例

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


在下文中一共展示了load_view函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _admin

 public function _admin()
 {
     if (is_admin()) {
         return;
     }
     load_view('admin');
 }
开发者ID:idkwim,项目名称:wargamekr,代码行数:7,代码来源:admin.php

示例2: index

 public function index()
 {
     $this->load->model('challenge_model', 'challenge');
     $challenge_list = $this->challenge->get_list();
     $break_list = $this->challenge->break_list();
     load_view('challenge', ['list' => $challenge_list, 'break_list' => $break_list]);
 }
开发者ID:idkwim,项目名称:wargamekr,代码行数:7,代码来源:challenge.php

示例3: index

 public function index()
 {
     // {{{
     $member = $this->session->userdata('loginmember');
     if (empty($this->input->cookie('nologin')) && empty($member)) {
         redirect('/sign/login', 'refresh');
         die;
     }
     $this->load->model('biz/Questionbiz', 'questionbiz');
     $result = $this->questionbiz->get_main_question_list(1);
     $like = array();
     if (!empty($result)) {
         if (!empty($member) && $member['mem_srl'] > 0) {
             $que_srls = array();
             foreach ($result as $k => $v) {
                 $que_srls[] = $v['que_srl'];
             }
             $this->load->model('biz/Likebiz', 'likebiz');
             $likes = $this->likebiz->get_like_info($member['mem_srl'], $que_srls);
             foreach ($likes as $k => $v) {
                 $like[$v['que_srl']] = $v['like_srl'];
             }
         }
     }
     $data = array();
     $data['member'] = $member;
     $data['list'] = $result;
     $data['like'] = $like;
     load_view('home/index', $data);
 }
开发者ID:prog106,项目名称:shoes,代码行数:30,代码来源:Home.php

示例4: pub_error

 /**
  * 登录显示错误页面
  * @param string $msg
  */
 private function pub_error($msg)
 {
     load_vars('error', $msg);
     load_view('admin/login');
     $this->output->_display();
     exit;
 }
开发者ID:shanliqun,项目名称:yanjun,代码行数:11,代码来源:login.php

示例5: view

 public function view($que_srl)
 {
     // {{{
     $member = $this->session->userdata('loginmember');
     if (empty($que_srl)) {
         alertmsg_move('질문이 없습니다.');
         die;
     }
     $data = array();
     $data['member'] = $member;
     $this->load->model('biz/Questionbiz', 'questionbiz');
     $question = array();
     $question = $this->questionbiz->get_question($que_srl);
     if (empty($question)) {
         alertmsg_move('질문이 없습니다.');
         die;
     }
     $like = array();
     if (!empty($member)) {
         $this->load->model('biz/Likebiz', 'likebiz');
         $likes = $this->likebiz->get_like_info($member['mem_srl'], array($que_srl));
         foreach ($likes as $k => $v) {
             $like[$v['que_srl']] = $v['like_srl'];
         }
     }
     $data['question'] = $question;
     $data['like'] = $like;
     load_view('answer/index', $data);
 }
开发者ID:prog106,项目名称:shoes,代码行数:29,代码来源:Answer.php

示例6: xml

 function xml()
 {
     global $runtime;
     $runtime['format'] = 'xml';
     $ins = new Institution();
     $realms = new Realm();
     $sls = new Service_loc();
     $ins = $ins->find_all();
     $realms = $realms->find_all();
     $sls = $sls->find_all();
     //Map all
     foreach ($realms as $r) {
         foreach ($ins as $in) {
             foreach ($sls as $s) {
                 if ($s->data['institutionid'] == $in->data['id']) {
                     $t[]->data = $s->data;
                 }
             }
             $in->sl = $t;
             $t = null;
             if ($in->data['realmid'] == $r->data['id']) {
                 $i[]->data = $in->data;
             }
         }
         $r->ins = $i;
         $i = null;
     }
     pass_var("realms", $realms);
     load_view('xml');
 }
开发者ID:stas,项目名称:eduroam-db,代码行数:30,代码来源:institutions-controller.php

示例7: getContent

 public function getContent($section)
 {
     if (!class_exists('TimeUtils')) {
         include dirname(__DIR__) . '/classes/TimeUtils.class.php';
     }
     if (!defined('DASHBOARD_FREEPBX_BRAND')) {
         if (!empty($_SESSION['DASHBOARD_FREEPBX_BRAND'])) {
             define('DASHBOARD_FREEPBX_BRAND', $_SESSION['DASHBOARD_FREEPBX_BRAND']);
         } else {
             define('DASHBOARD_FREEPBX_BRAND', \FreePBX::Config()->get("DASHBOARD_FREEPBX_BRAND"));
         }
     } else {
         $_SESSION['DASHBOARD_FREEPBX_BRAND'] = DASHBOARD_FREEPBX_BRAND;
     }
     $brand = DASHBOARD_FREEPBX_BRAND;
     if (\FreePBX::Config()->get("FREEPBX_SYSTEM_IDENT")) {
         $idline = sprintf(_("<strong>'%s'</strong><br><i>(You can change this name in Advanced Settings)</i>"), \FreePBX::Config()->get("FREEPBX_SYSTEM_IDENT"));
     } else {
         $idline = "";
     }
     try {
         $getsi = \FreePBX::create()->Dashboard->getSysInfo();
     } catch (\Exception $e) {
     }
     $since = time() - $getsi['timestamp'];
     $notifications = $this->getNotifications(isset($_COOKIE['dashboardShowAll']) && $_COOKIE['dashboardShowAll'] == "true");
     $nots = $notifications['nots'];
     $alerts = $this->getAlerts($nots);
     return load_view(dirname(__DIR__) . '/views/sections/overview.php', array("showAllMessage" => $notifications['showAllMessage'], "nots" => $nots, "alerts" => $alerts, "brand" => $brand, "idline" => $idline, "version" => get_framework_version(), "since" => $since, "services" => $this->getSummary()));
 }
开发者ID:umjinsun12,项目名称:dngshin,代码行数:30,代码来源:Overview.class.php

示例8: notFound

 static function notFound($message = '')
 {
     header("HTTP/1.0 404 Not Found");
     $title = "404 Not Found";
     load_template('header', array('title' => $title));
     load_view('not_found');
     load_template('footer');
 }
开发者ID:shaq147,项目名称:ocarina_technologies,代码行数:8,代码来源:Http.php

示例9: notFound

 function notFound($message = '')
 {
     header("HTTP/1.0 404 Not Found");
     $title = "404 Not Found";
     load_template('header', ['title' => $title, 'message' => $message]);
     load_view('not_found');
     load_template('footer');
 }
开发者ID:aliwebir,项目名称:paliweb,代码行数:8,代码来源:Http.php

示例10: getRightNav

 public function getRightNav($request)
 {
     if (isset($request['view']) && $request['view'] == "form") {
         return load_view(__DIR__ . "/views/rnav.php", array());
     } else {
         return '';
     }
 }
开发者ID:ringfreejohn,项目名称:pbxframework,代码行数:8,代码来源:Conferences.class.php

示例11: profile_aboutdisp

 function profile_aboutdisp($data, $printjson = true)
 {
     $outp = ao();
     if ($printjson) {
         echo json_encode($outp) . "\n";
     }
     load_view("template/profile_aboutdisp.php", Funs::getprofile_about($data["uid"]));
 }
开发者ID:harshaccent,项目名称:kurry,代码行数:8,代码来源:Actiondisp.php

示例12: xml

 function xml()
 {
     global $runtime;
     $runtime['format'] = 'xml';
     $i = new Realm();
     pass_var("realms", $i->find_all());
     load_view('xml');
 }
开发者ID:stas,项目名称:eduroam-db,代码行数:8,代码来源:realms-controller.php

示例13: index

 public function index()
 {
     // {{{
     $member = $this->session->userdata('loginmember');
     self::manager($member);
     $data = array();
     $data['member'] = $member;
     load_view('question/index', $data);
 }
开发者ID:prog106,项目名称:shoes,代码行数:9,代码来源:Question.php

示例14: index

 public function index()
 {
     if (!is_logged_in()) {
         redirect('main');
     }
     $this->load->model('achievement_model', 'achievement');
     $list = $this->achievement->get_list();
     $list = array_chunk($list, ceil(count($list) / 3));
     load_view('achievement', ['list' => $list]);
 }
开发者ID:idkwim,项目名称:wargamekr,代码行数:10,代码来源:achievement.php

示例15: parking_views

function parking_views($view, $data)
{
    if (function_exists('parkpro_view')) {
        $o = parkpro_view($view, $data);
        if ($o) {
            return $o;
        }
    }
    return load_view(dirname(__FILE__) . '/views/' . $view . '.php', $data);
}
开发者ID:ringfreejohn,项目名称:pbxframework,代码行数:10,代码来源:functions.inc.php


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