当前位置: 首页>>代码示例>>PHP>>正文


PHP Breadcrumbs::widget方法代码示例

本文整理汇总了PHP中Breadcrumbs::widget方法的典型用法代码示例。如果您正苦于以下问题:PHP Breadcrumbs::widget方法的具体用法?PHP Breadcrumbs::widget怎么用?PHP Breadcrumbs::widget使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Breadcrumbs的用法示例。


在下文中一共展示了Breadcrumbs::widget方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: isset

<?php

echo Breadcrumbs::widget(['links' => isset($view->params['breadcrumbs']) ? $view->params['breadcrumbs'] : []]);
开发者ID:jacmoe,项目名称:bugitor,代码行数:3,代码来源:_breadcrumbs.php

示例2: function

 * Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
 * Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus.
 * Vestibulum commodo. Ut rhoncus gravida arcu.
 */
/**
 * @var View $this
 * @var RequestLogSearch $searchModel
 * @var ActiveDataProvider $dataProvider
 */
use yii\helpers\Html;
use kartik\grid\GridView;
use yii\widgets\Pjax;
/** @var IdentityInterface|ActiveRecord $identity */
$identity = Yii::$app->getUser()->identityClass;
$this->title = Module::t('Requests');
echo Breadcrumbs::widget(['links' => [$this->title]]);
?>
<div class="request-log-default-index">
    <h3><?php 
echo Html::encode($this->title);
?>
</h3>

    <?php 
Pjax::begin();
echo GridView::widget(['filterModel' => $searchModel, 'dataProvider' => $dataProvider, 'columns' => [['attribute' => 'id', 'value' => function ($model, $index, $dataColumn) {
    /** @var RequestLog $model */
    return $model->id;
}, 'filter' => false], 'app_id', 'route', 'params', ['attribute' => 'user_id', 'value' => function ($model, $index, $dataColumn) {
    return $model->user ? $model->user->{Module::getInstance()->usernameAttribute} : Module::t('Guest');
}, 'filter' => ArrayHelper::map($identity::find()->all(), 'id', Module::getInstance()->usernameAttribute)], 'ip', ['attribute' => 'datetime', 'value' => function ($model, $index, $dataColumn) {
开发者ID:tqsq2005,项目名称:Yii2adv,代码行数:31,代码来源:index___.php

示例3: array

        echo Html::a(Html::img($assets->baseUrl . '/images/newmail.png', array('title' => $messages . ' ' . Yii::t('BbiiModule.bbii', 'new messages'), 'style' => 'vertical-align:bottom;')), array('message/inbox'), array('class' => 'btn btn-default'));
    } else {
        echo Html::a(Html::img($assets->baseUrl . '/images/mail.png', array('title' => Yii::t('BbiiModule.bbii', 'no new messages'), 'style' => 'vertical-align:bottom;')), array('message/inbox'), array('class' => 'btn btn-default'));
    }
    echo Html::a(Html::img($assets->baseUrl . '/images/settings.png', array('title' => Yii::t('BbiiModule.bbii', 'My settings'), 'style' => 'vertical-align:bottom;')), array('member/view', 'id' => \Yii::$app->user->identity->id), array('class' => 'btn btn-default'));
    echo Html::a(Html::img($assets->baseUrl . '/images/config.png', array('title' => Yii::t('BbiiModule.bbii', 'Forum settings'), 'style' => 'vertical-align:bottom;')), array('setting/index'), array('class' => 'btn btn-default'));
    ?>
        </div>
    <?php 
}
?>
    <h2><?php 
echo $this->context->module->forumTitle;
?>
</h2>
    <br />
    <div id = "nav" class="clearfix">
    <?php 
echo Nav::widget(['items' => $item, 'options' => array('class' => 'nav nav-pills')]);
?>
    </div>
</div>
<?php 
if (isset($this->context->bbii_breadcrumbs)) {
    ?>
    <?php 
    echo Breadcrumbs::widget(array('homeLink' => false, 'links' => $this->context->bbii_breadcrumbs));
    ?>
<!-- breadcrumbs -->
<?php 
}
开发者ID:sourcetoad,项目名称:bbii2,代码行数:31,代码来源:_header.php


注:本文中的Breadcrumbs::widget方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。