Example #1
0
<?php

use yii\helpers\Html;
use oknetsun\axis\widgets\category\CategoryWidget;
/* @var $this yii\web\View */
/* @var $searchModel app\models\ArticlesSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Category';
//$this->params['breadcrumbs'][] = $this->title;
?>
<div id="category" class="row">

    <?php 
echo CategoryWidget::widget(['cat_id' => $model->id]);
?>

</div>
Example #2
0
<?php

use oknetsun\axis\widgets\category\CategoryWidget;
$this->title = 'Cui prodest?';
?>


<div class="site-index">
 	<?php 
echo CategoryWidget::widget(['cat_id' => 0]);
?>
</div>