本文整理汇总了PHP中F::url方法的典型用法代码示例。如果您正苦于以下问题:PHP F::url方法的具体用法?PHP F::url怎么用?PHP F::url使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类F
的用法示例。
在下文中一共展示了F::url方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<div class="container">
<ul class="horizontal_list clearfix bc_list f_size_medium">
<li class="m_right_10 current"><a href="#" class="default_t_color">首页<i class="fa fa-angle-right d_inline_middle m_left_10"></i></a></li>
<li><a href="#" class="default_t_color">注册</a></li>
</ul>
</div>
</section>
<div class="page_content_offset">
<div class="container">
<div class="row clearfix">
<div class="col-lg-6 col-sm-6 col-md-6 m_bottom_40">
<!--login form-->
<h2 class="color_dark m_bottom_25">登录</h2>
<h5 class="fw_medium m_bottom_15">I am Already Registered</h5>
<form action="<?php
echo F::url('/user/login');
?>
" method="post">
<ul>
<li class="clearfix m_bottom_15">
<div class="half_column type_2 f_left">
<label for="username" class="m_bottom_5 d_inline_b">Username</label>
<input type="text" id="username" name="UserLogin[username]" class="r_corners full_width m_bottom_5">
<a href="#" class="color_dark f_size_medium">Forgot your username?</a>
</div>
<div class="half_column type_2 f_left">
<label for="pass" class="m_bottom_5 d_inline_b">Password</label>
<input type="password" id="pass" name="UserLogin[password]" class="r_corners full_width m_bottom_5">
<a href="#" class="color_dark f_size_medium">Forgot your password?</a>
</div>
</li>
示例2:
<li><a href="<?php
echo F::url('/member/orderlist/admin');
?>
" class="default_t_color"><?php
echo Yii::t('site', 'Orders List');
?>
</a></li>
<li><a href="<?php
echo F::url('/member/wishlist/admin');
?>
" class="default_t_color"><?php
echo Yii::t('site', 'Wishlist');
?>
</a></li>
<li><a href="<?php
echo F::url('/cart');
?>
" class="default_t_color"><?php
echo Yii::t('site', 'Checkout');
?>
</a></li>
</ul>
</nav>
<div class="col-lg-4 col-md-4 col-sm-3 t_align_r t_xs_align_c">
<ul class="horizontal_list clearfix d_inline_b t_align_l f_size_medium site_settings type_2">
<?php
$this->widget('application.modules.site.widgets.WLangBox');
?>
<?php
$this->widget('application.modules.site.widgets.WCurrency');
?>
示例3: array
<?php
$this->pageTitle = Yii::app()->name . ' - Error';
$this->breadcrumbs = array('Error');
?>
<div class="clear"></div>
<!--breadcrumbs-->
<section class="breadcrumbs">
<div class="container">
<ul class="horizontal_list clearfix bc_list f_size_medium">
<li class="m_right_10 current"><a href="<?php
echo F::url('/site/default/index');
?>
" class="default_t_color">Home<i class="fa fa-angle-right d_inline_middle m_left_10"></i></a></li>
<li><a href="#" class="default_t_color">Error</a></li>
</ul>
</div>
</section>
<!--content-->
<div class="page_content_offset">
<div class="container m_bottom_45">
<!-- <blockquote class="r_corners shadow f_size_large relative m_bottom_30">-->
<?php
echo CHtml::encode($message);
?>
<!-- </blockquote>-->
</div>
</div>
示例4: array
<?php
$this->breadcrumbs = array(Yii::t('main', 'List Item') => array('admin'), Yii::t('main', 'Manage'));
$this->menu = array(array('label' => Yii::t('frontend', 'Create Item'), 'icon' => 'plus', 'url' => array('create')));
?>
<?php
$form = $this->beginWidget('CActiveForm', array('id' => 'item-form', 'action' => F::url('/catalog/itemBackend/bulk'), 'htmlOptions' => array('enctype' => 'multipart/form-data'), 'enableAjaxValidation' => false));
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'item-grid', 'type' => 'striped bordered condensed', 'dataProvider' => $model->search(), 'selectableRows' => 2, 'enableHistory' => 'true', 'columns' => array(array('class' => 'CCheckBoxColumn', 'name' => 'item_id', 'value' => '$data->item_id'), array('name' => 'category.name', 'header' => '商品分类'), array('name' => 'title', 'header' => '商品标题'), array('name' => 'is_show', 'header' => '上架', 'value' => 'Tbfunction::showYesOrNo($data->is_show)', 'filter' => Tbfunction::ReturnYesOrNo()), array('name' => 'is_promote', 'header' => '热销', 'value' => 'Tbfunction::showYesOrNo($data->is_promote)', 'filter' => Tbfunction::ReturnYesOrNo()), array('name' => 'is_new', 'header' => '新品', 'value' => 'Tbfunction::showYesOrNo($data->is_new)', 'filter' => Tbfunction::ReturnYesOrNo()), array('name' => 'is_hot', 'header' => '热卖', 'value' => 'Tbfunction::showYesOrNo($data->is_hot)', 'filter' => Tbfunction::ReturnYesOrNo()), array('name' => 'is_best', 'header' => '精品', 'value' => 'Tbfunction::showYesOrNo($data->is_best)', 'filter' => Tbfunction::ReturnYesOrNo()), array('class' => 'bootstrap.widgets.TbButtonColumn'))));
?>
<div class="span12">
<div class="bulk-action span10">
<?php
echo CHtml::radioButtonList('act', '', array('delete' => '删除产品', 'is_show' => '上架', 'un_show' => '下架', 'is_promote' => '促销', 'un_promote' => '取消促销', 'is_new' => '新品', 'un_new' => '取消新品', 'hot' => '热卖', 'un_hot' => '取消热卖', 'best' => '精品', 'un_best' => '取消精品'), array('separator' => ' '));
?>
</div>
<div class="bulk-action span2">
<?php
echo CHtml::submitButton('提交', array('class' => 'btn btn-primary'));
?>
</div>
</div>
<?php
$this->endWidget();
示例5: events
<div class='youcan'>
<small class='text-center'>You can</small>
</div>
<div class='search'>
<form action='search_results.html' method='get'>
<input value="" placeholder="Search..." name="q" type="text" />
<button class='btn'>
<i class='icon-search'></i>
</button>
</form>
</div>
<div class='youcan'>
<small class='text-center'>or</small>
</div>
<a class='btn btn-block' href='<?php
echo F::url('/core/default/index');
?>
'>
<i class='icon-chevron-left'></i>
Go back
</a>
</div>
<!-- / jquery -->
<script src="<?php
echo F::themeUrl() . '/assets/';
?>
javascripts/jquery/jquery.min.js" type="text/javascript"></script>
<!-- / jquery mobile events (for touch and slide) -->
<script src="<?php
echo F::themeUrl() . '/assets/';
?>
示例6: strrpos
">
<a class='dropdown-collapse ' href='#'>
<i class='icon-group'></i>
<span>用户管理</span>
<i class='icon-angle-down angle-down'></i>
</a>
<ul class='<?php
echo strrpos($url, 'user') !== false || strrpos($url, 'auth') !== false ? 'in' : '';
?>
nav nav-stacked'>
<li class='<?php
echo strrpos($url, 'user') !== false ? 'active' : '';
?>
'>
<a href='<?php
echo F::url('/user/admin');
?>
'>
<i class='icon-caret-right'></i>
<span>会员列表</span>
</a>
</li>
<li class='<?php
echo strrpos($url, 'auth') !== false ? 'active' : '';
?>
'>
<a href='<?php
echo Yii::app()->createUrl('/auth');
?>
'>
<i class='icon-caret-right'></i>