本文整理汇总了PHP中yii\helpers\Url::staticUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP Url::staticUrl方法的具体用法?PHP Url::staticUrl怎么用?PHP Url::staticUrl使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类yii\helpers\Url
的用法示例。
在下文中一共展示了Url::staticUrl方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<div>结束:15.02.21-16:30</div>
<div>地点:海南省海口市秀英区望海楼</div>
</div>
</div>
</div>
<div class="tag over">
已结束
</div>
</div>
</li>
<li class="">
<div class="model item">
<div class="infowrap">
<div class="avadar rectavadar distable-cell">
<img src="<?php
echo Url::staticUrl('images/avatar-dhg.png');
?>
">
</div>
<div class="userinfo distable-cell">
<div class="username">
<span class="name pd0">马克·砸破胳膊</span>
<span class="iconfont lightcolor13">ä</span>
</div>
<div class="userintro lightcolor13">
<div>发起:陈韩楼<span class="iconfont lightbluecolor13 pd-l6 popup" data-toggle="popover" data-content="公司认证" data-original-title="" title="">Ì</span></div>
<div>开始:15.02.20-15:30</div>
<div>结束:15.02.21-16:30</div>
<div>地点:海南省海口市秀英区望海楼</div>
</div>
示例2: url
<?php
use yii\helpers\Url;
use yii\helpers\Html;
use ep\assets\UserAsset;
UserAsset::register($this);
?>
<div class="row model index-cover top-right-none top-left-none">
<div class="imgwrap bg_img" style="background-image: url(<?php
echo Url::staticUrl('images/banner2.jpg');
?>
)">
<!-- 右上角icon -->
<div class="photoicon">
<span class="iconfont list_icon popup opacity-half shadow" data-toggle="popover" data-content="修改头像">Ö</span>
</div>
<!-- 渐变遮罩 -->
<div class="gradientmask">
</div>
<div class="avadarwrap rectavadar rectavadar-5">
<div class="avadar rectavadar rectavadar-5">
<img src="<?php
echo $users['avatar'];
?>
" alt="">
<div class="shadow">
<span class="iconfont list_icon popup" data-toggle="popover" data-content="修改头像">Ö</span>
</div>
</div>
</div>
示例3:
<?php
use yii\helpers\Html;
use yii\helpers\Url;
// extract($this->params['global_menu'], EXTR_PREFIX_ALL, 'GL');
$html['powered'] = Yii::powered();
// $html['sidebar'] = $this->renderFile('@ep/views/elements/sidebar.php');
$this->beginContent('@ep/views/layouts/base.php');
$staticUrl = Url::staticUrl();
$html = <<<EOT
<nav class="navbar navbar-default navbar-fixed-top">
\t<div class="container">
\t <div class="navbar-header">
\t <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
\t <span class="sr-only">Toggle navigation</span>
\t <span class="icon-bar"></span>
\t <span class="icon-bar"></span>
\t <span class="icon-bar"></span>
\t </button>
\t <a class="navbar-brand" href="#"><img src="{$staticUrl}/images/logo.png" /></a>
\t </div>
\t <div id="navbar" class="navbar-collapse collapse">
\t <form class="mobile_search" role="search">
\t <div class="et">
\t <input type="text" class="form-control shadow_none" data-action="grow" placeholder="Search" style="width: 100%;">
\t <button class="iconfont search_btn" type="submit">x</button>
\t </div>
\t </form>
\t <ul class="nav navbar-nav mobile_nav">
\t <li class="active"><a href="#">首页</a></li>
\t <li><a href="#">列表</a></li>