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


PHP requireView函數代碼示例

本文整理匯總了PHP中requireView函數的典型用法代碼示例。如果您正苦於以下問題:PHP requireView函數的具體用法?PHP requireView怎麽用?PHP requireView使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


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

示例1: define

<?php

/// Copyright (c) 2004-2011, Needlworks  / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
define('__TEXTCUBE_IPHONE__', true);
require ROOT . '/library/preprocessor.php';
requireView('iphoneView');
if (isset($_GET['page'])) {
    $page = $_GET['page'];
} else {
    $page = 1;
}
if (!empty($suri['id'])) {
    list($entries, $paging) = getEntryWithPaging($blogid, $suri['id']);
    $entry = $entries ? $entries[0] : null;
    ?>
<div id="trackback_<?php 
    echo $entry['id'] . "_" . time();
    ?>
" title="<?php 
    echo _text('트랙백');
    ?>
 : <?php 
    echo htmlspecialchars($entry['title']);
    ?>
" selected="false">
<?php 
    printIphoneTrackbackView($entry['id']);
    ?>
	<fieldset class="navi margin-top10">
開發者ID:hinablue,項目名稱:TextCube,代碼行數:31,代碼來源:index.php

示例2: define

<?php

/// Copyright (c) 2004-2012, Needlworks  / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
define('__TEXTCUBE_MOBILE__', true);
require ROOT . '/library/preprocessor.php';
requireView('mobileView');
list($entries, $paging) = getEntryWithPaging($blogid, $suri['id']);
$entry = $entries ? $entries[0] : null;
printMobileHtmlHeader(htmlspecialchars($context->getProperty('blog.title')));
?>
<div id="pannels">
	<!--
	<h2><?php 
echo _t('카테고리');
?>
</h2>
	<?php 
echo getCategoriesView(getEntriesTotalCount($blogid), getCategories($blogid), true, true);
?>
	-->
	<h2><?php 
echo _text('최근에 달린 댓글');
?>
</h2>
	<?php 
$comments = getRecentComments($blogid);
if (count($comments) > 0) {
    echo '<ul>';
}
開發者ID:ragi79,項目名稱:Textcube,代碼行數:31,代碼來源:index.php


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