本文整理汇总了PHP中Render::html方法的典型用法代码示例。如果您正苦于以下问题:PHP Render::html方法的具体用法?PHP Render::html怎么用?PHP Render::html使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Render
的用法示例。
在下文中一共展示了Render::html方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: support
public function support()
{
if (Session::$user) {
Render::html(Doc::by_name('support')['content'], ['email' => Session::$user['email']]);
} else {
Render::php(HTML . 'login.php');
}
}
示例2: get_ref
public function get_ref($params = [])
{
//echo '<pre>'; print_r($params); echo '</pre>'; exit;
if (isset($params['_escaped_fragment_'])) {
$file_name = substr($params['_escaped_fragment_'], 5);
$context = ['page' => $file_name, 'link_style' => -1];
$content = Template::render_doc_by_name('basic-ref', $context);
Render::html($content);
} else {
Render::include_script("app/mdCode");
parent::doc($params);
}
}
示例3: html
public function html()
{
$this->geraCodigoBarras();
$ref = new \ReflectionClass($this);
$render = new Render($ref->getShortName(), ['boleto' => $this]);
echo $render->html();
}
示例4: installed
public function installed($params = [])
{
$key = $params['key'];
$version = $params['version'];
$status = isset($params['Status']) ? $params['Status'] : '';
$evaluator = Evaluator::read_by_key($key);
if (isset($evaluator['downloads']) && $version >= 1 && $version <= count($evaluator['downloads'])) {
// downloads are in reverse order (newest to oldest)
// version number 1 is the oldest
$idx = count($evaluator['downloads']) - $version;
$id = $evaluator['downloads'][$idx]['id'];
$update = ['installed_date' => gmdate('Y-m-d'), 'status' => $status];
EvaluatorDownload::update($update, $id, 'installed_count = installed_count+1');
}
// show the news page
Render::html(Doc::by_name('news')['content']);
}