Пример #1
0
 * @time    2:35 CH
 */
use kartik\grid\GridView;
use navatech\language\models\PhraseSearch;
use navatech\language\Translate;
use yii\data\ActiveDataProvider;
use yii\web\View;
/* @var $this View */
/* @var $searchModel PhraseSearch */
/* @var $dataProvider ActiveDataProvider */
$this->title = Translate::list_x(Translate::phrase());
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="navatech-language">
	<div class="col-sm-12">
		<div class="page-header">
			<h1><?php 
echo Translate::phrase();
?>
				<small><i class="ace-icon fa fa-angle-double-right"></i> <?php 
echo Translate::list_x(Translate::phrase());
?>
				</small>
			</h1>
		</div>
		<div class="space-6"></div>
		<?php 
echo GridView::widget(['id' => 'phrase', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'responsive' => true, 'hover' => true, 'pjax' => true, 'export' => false, 'columns' => $searchModel->phraseColumns()]);
?>
	</div>
</div>
 /**
  * @return array attribute labels (name => label)
  * @see generateAttributeLabel()
  */
 public function attributeLabels()
 {
     return ['id' => 'No.', 'phrase_id' => Translate::phrase(), 'language_id' => Translate::language(), 'value' => Translate::translate()];
 }