本文整理汇总了PHP中core::url方法的典型用法代码示例。如果您正苦于以下问题:PHP core::url方法的具体用法?PHP core::url怎么用?PHP core::url使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类core
的用法示例。
在下文中一共展示了core::url方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: label
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<?php
echo core::prepend('head');
?>
</head>
<body>
<?
$c= cms::context();
$c-> label('Test if data files writable') -> icon('offline_pin') -> popup(core::url('test-files'));
$c-> label('To ConKit project page') -> icon('cloud') -> url("https://github.com/stanpro/conkit");
echo cms::anchorGlobal($c);
?>
<fieldset>
<legend>Header (see head.tpl.php)</legend>
<div>
<img src="logo.png" style="width:100px; vertical-align:middle; margin-right:2em; margin-left:3em;">
<a href="<?php
echo cms::loginUrl();
?>
">Login</a>
</div>
</fieldset>
<fieldset style="padding:3em;">
<legend>Body template (see <?php
echo core::moduleName();
?>
.tpl.php)</legend>
示例2: redirect
static function redirect()
{
core::halt(303, core::url(func_get_args()));
}
示例3: label
else $c-> label('Hide image') -> icon('visibility_off') -> url(core::url('upload-image','cms-form-action','hide'));
echo cms::anchor($c);
?>
<div style="float:right;">
<? if (!core::req('.hide-image')): ?>
<img src="sample.jpg" style="max-width:400px; margin-left:2em;">
<? endif ?>
</div>
<?php
echo core::vars('text1');
?>
</div>
<? if(cms::admin()): ?>
<?
$c= cms::context() -> label('Edit') -> icon('edit') -> popup(core::url('edit-block','no',2)) -> popuptitle('Edit text block 2');
echo cms::anchor($c,'Block 2');
?>
<div>
<h1><?php
echo core::vars('headline2');
?>
</h1>
<h2><?php
echo core::vars('subheadline2');
?>
</h2>
<?php
echo core::vars('text2');
?>
</div>
示例4: template
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<?php
echo core::prepend('head');
?>
</head>
<body>
<fieldset>
<legend>Header (see head.tpl.php)</legend>
<div>
<img src="logo.png" style="width:100px; vertical-align:middle; margin-right:2em; margin-left:3em;">
Menu: |
<a href="<?php
echo core::url('home');
?>
">Home</a> |
<a href="<?php
echo core::url('other');
?>
">Another page</a> |
<a href="https://github.com/stanpro/conkit" target="_blank">ConKit project page</a>
</div>
</fieldset>
<fieldset style="padding:3em;">
<legend>Body template (see <?php
echo core::moduleName();
?>
.tpl.php)</legend>