コード例 #1
0
ファイル: index.php プロジェクト: pistol88/yii2-order
<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\helpers\ArrayHelper;
use pistol88\order\assets\Asset;
Asset::register($this);
$this->title = Yii::t('order', 'Shipping types');
$this->params['breadcrumbs'][] = ['label' => Yii::t('order', 'Orders'), 'url' => ['/order/order/index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="field-index">

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>

    <div class="row">
        <div class="col-lg-2">
            <?php 
echo Html::a(Yii::t('order', 'Create shipping type'), ['create'], ['class' => 'btn btn-success']);
?>
        </div>
        <div class="col-lg-10">
            <?php 
echo $this->render('/parts/menu.php', ['active' => 'shipping-type']);
?>
        </div>
    </div>
コード例 #2
0
ファイル: Informer.php プロジェクト: pistol88/yii2-order
 public function init()
 {
     parent::init();
     \pistol88\order\assets\Asset::register($this->getView());
     return true;
 }