本文整理汇总了PHP中Banner::label方法的典型用法代码示例。如果您正苦于以下问题:PHP Banner::label方法的具体用法?PHP Banner::label怎么用?PHP Banner::label使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Banner
的用法示例。
在下文中一共展示了Banner::label方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
/** @var BannerController $this */
/** @var Banner $model */
$this->breadcrumbs = array($model->label(2) => array('index'), Yii::t('app', $model->id) => array('view', 'id' => $model->id), Yii::t('AweCrud.app', 'Update'));
$this->menu = array(array('label' => Yii::t('AweCrud.app', 'Delete'), 'icon' => 'trash', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => Yii::t('AweCrud.app', 'Are you sure you want to delete this item?'))), array('label' => Yii::t('AweCrud.app', 'Manage'), 'icon' => 'list-alt', 'url' => array('admin')));
?>
<fieldset>
<legend><?php
echo Yii::t('AweCrud.app', 'Update') . ' ' . Banner::label();
?>
<?php
echo CHtml::encode($model);
?>
</legend>
<?php
echo $this->renderPartial('_form', array('model' => $model));
?>
</fieldset>
示例2: array
<?php
/** @var BannerController $this */
/** @var Banner $model */
$this->breadcrumbs = array('Banners');
$this->menu = array(array('label' => Yii::t('AweCrud.app', 'Create') . ' ' . Banner::label(), 'icon' => 'plus', 'url' => array('create')), array('label' => Yii::t('AweCrud.app', 'Manage'), 'icon' => 'list-alt', 'url' => array('admin')));
?>
<fieldset>
<legend>
<?php
echo Yii::t('AweCrud.app', 'List');
?>
<?php
echo Banner::label(2);
?>
</legend>
<?php
$this->widget('bootstrap.widgets.TbListView', array('dataProvider' => $dataProvider, 'itemView' => '_view'));
?>
</fieldset>
示例3: array
<?php
/** @var BannerController $this */
/** @var Banner $model */
$this->breadcrumbs = array('Banners' => array('index'), $model->id);
$this->menu = array(array('label' => Yii::t('AweCrud.app', 'Create') . ' ' . Banner::label(), 'icon' => 'plus', 'url' => array('create')), array('label' => Yii::t('AweCrud.app', 'Update'), 'icon' => 'pencil', 'url' => array('update', 'id' => $model->id)), array('label' => Yii::t('AweCrud.app', 'Delete'), 'icon' => 'trash', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => Yii::t('AweCrud.app', 'Are you sure you want to delete this item?'))), array('label' => Yii::t('AweCrud.app', 'Manage'), 'icon' => 'list-alt', 'url' => array('admin')));
?>
<fieldset>
<legend><?php
echo Yii::t('AweCrud.app', 'View') . ' ' . Banner::label();
?>
<?php
echo CHtml::encode($model);
?>
</legend>
<?php
$this->widget('bootstrap.widgets.TbDetailView', array('data' => $model, 'attributes' => array('id', array('name' => 'descripcion', 'type' => 'html'), array('name' => 'imagen', 'type' => 'image'), 'alt_imagen', array('name' => 'visible', 'type' => 'boolean'))));
?>
</fieldset>