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


PHP core::view方法代碼示例

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


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

示例1: view

 public static function view($_view_file, $_view_vars = array(), $_view_type = null, $_view_show = null)
 {
     $map = self::_get_map();
     $_view_vars['lang'] = get_lang();
     $_view_vars['charset'] = CHARSET;
     $_view_vars['done'] = self::$_done;
     $_view_vars['doing'] = self::$_doing;
     $_view_vars['step_num'] = array_search(self::$_doing, $map) + 1;
     $_view_vars['step_name'] = get_lang(self::$_doing . "_title");
     $_view_vars['step_desc'] = get_lang(self::$_doing . "_desc");
     $_view_vars['hiddens'] = self::$_hiddens;
     $_view_vars['map'] = $map;
     parent::view($_view_file, $_view_vars, $_view_type, $_view_show);
 }
開發者ID:antsmallant,項目名稱:coreapp,代碼行數:14,代碼來源:install.php

示例2: index

 /**
  * 默認首頁
  */
 public static final function index()
 {
     core::view(__CLASS__ . '/' . __FUNCTION__ . '.tpl');
 }
開發者ID:antsmallant,項目名稱:coreapp,代碼行數:7,代碼來源:hello.php

示例3: world

 /**
  * hello world
  */
 public static final function world()
 {
     core::view(__CLASS__ . '/' . __FUNCTION__ . '.tpl', array('world' => $_GET['do']));
 }
開發者ID:antsmallant,項目名稱:coreapp,代碼行數:7,代碼來源:hello.php

示例4: view2

 public static function view2($_view_file_global = null, $_view_vars = null, $_view_type = null, $_view_show = null)
 {
     //$config = parent::init('config');
     if (is_string($_view_file_global) && strstr($_view_file_global, '.')) {
         $str = parent::view($_view_file_global, $_view_vars, $_view_type, false);
         if ($config['siteRewrite'] == false) {
             $array = array('@([\\w\\d\\-]+)_([\\d]+).html@isU' => '?go=news&do=detail&news_id=$2');
             $a1 = array_keys($array);
             $a2 = array_values($array);
             if ($_view_show === false) {
                 return preg_replace($a1, $a2, $str);
             }
             $html = preg_replace($a1, $a2, $str);
         } else {
             $array = array('@\\?go=user@isU' => 'My-Account.html');
             $a1 = array_keys($array);
             $a2 = array_values($array);
             if ($_view_show === false) {
                 return preg_replace($a1, $a2, $str);
             }
             $html = preg_replace($a1, $a2, $str);
         }
         //$html =  strip_tags($html,'<p><a><b><html><body><!DOCTYPE><div><table><tr><td><th><input><select><option>');
         if (IN_WAP) {
             $array = array('@<\\!DOCTYPE[^>]+>@isU' => '', '@<html[^>]+>@isU' => '<html>', '@<link[^>]+>@isU' => '', '@<script[^>]*?>[^<]+?</script>@isU' => '', '@<script[^>]*?></script>@isU' => '', '@&nbsp;@isU' => ' ');
             $a1 = array_keys($array);
             $a2 = array_values($array);
             $html = preg_replace($a1, $a2, $html);
         }
         echo $html;
     } else {
         return parent::view($_view_file_global, $_view_vars, $_view_type, $_view_show);
     }
 }
開發者ID:antsmallant,項目名稱:coreapp,代碼行數:34,代碼來源:front.php


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