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