本文整理汇总了PHP中tpl_flush函数的典型用法代码示例。如果您正苦于以下问题:PHP tpl_flush函数的具体用法?PHP tpl_flush怎么用?PHP tpl_flush使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tpl_flush函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tpl_flush
<?php
tpl_flush();
?>
<?php
tpl_includeFile('pageheader.html');
?>
<article class="page">
<!-- wikipage start -->
<?php
tpl_content();
?>
<!-- wikipage stop -->
<!--<div class="clearer"></div>-->
</article><!-- /.page -->
<?php
tpl_flush();
?>
<?php
tpl_includeFile('pagefooter.html');
?>
</div><!-- /.pad -->
</div><!-- /#dokuwiki__content -->
<!--<div class="clearer"></div>-->
<hr class="a11y" />
<!-- PAGE ACTIONS -->
<?php
if ($showTools) {
?>
<div id="dokuwiki__pagetools">
<h3 class="a11y"><?php
echo $lang['page_tools'];
示例2: tpl_flush
<?php }?>
</div>
<?php tpl_flush()?>
<?php /*old includehook*/ @include(dirname(__FILE__).'/pageheader.html')?>
<div class="page">
<!-- wikipage start -->
<?php tpl_content()?>
<!-- wikipage stop -->
</div>
<div class="clearer"></div>
<?php tpl_flush()?>
<div class="stylefoot">
<div class="meta">
<div class="user">
<?php tpl_userinfo()?>
</div>
<div class="doc">
<?php tpl_pageinfo()?>
</div>
</div>
<?php /*old includehook*/ @include(dirname(__FILE__).'/pagefooter.html')?>
<div class="bar" id="bar__bottom">
示例3: html
/**
* Output the Statistics
*/
function html()
{
echo '<div id="plugin__statistics">';
echo '<h1>' . $this->getLang('menu') . '</h1>';
$this->html_timeselect();
tpl_flush();
$method = 'html_' . $this->opt;
if (method_exists($this, $method)) {
echo '<div class="plg_stats_' . $this->opt . '">';
echo '<h2>' . $this->getLang($this->opt) . '</h2>';
$this->{$method}();
echo '</div>';
}
echo '</div>';
}
示例4: sendGIF
/**
* Just send a 1x1 pixel blank gif to the browser
*
* @author Andreas Gohr <andi@splitbrain.org>
* @author Harry Fuecks <fuecks@gmail.com>
*/
function sendGIF()
{
$img = base64_decode('R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAEALAAAAAABAAEAAAIBTAA7');
header('Content-Type: image/gif');
header('Content-Length: ' . strlen($img));
header('Connection: Close');
print $img;
tpl_flush();
// Browser should drop connection after this
// Thinks it's got the whole image
}