示例#1
0
<?php

use yii\helpers\Html;
use yii\grid\GridView;
use app\models\Services;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $searchModel app\models\ServicesSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('app', 'Services');
$this->params['breadcrumbs'][] = ['label' => $this->title, 'url' => ['index']];
$this->params['breadcrumbs'] = Services::getListBreadcrumb($id, $this->params['breadcrumbs']);
?>
<div class="col-md-2">
    <?php 
echo $this->render('_menu');
?>
</div>
<div class="col-md-10">
    <?php 
// echo $this->render('_search', ['model' => $searchModel]);
?>
    <p>
        <?php 
echo Html::a(Yii::t('app', 'Create Services'), ['create', 'id' => $id], ['class' => 'btn btn-success']);
?>
    </p>
    <p>
        <?php 
if ($id != 0) {
    if ($Services->parent_id != 0) {