<?php
use yii\widgets\Menu;
?>
<?php if(!empty($wrapper)) :?>
<div class="<?= $wrapper?>">
<?php endif?>
<ul>
<?php foreach($items as $i => $category) :?>
    <li class="item_<?= $category->alias?><?= (!empty($active) && $active == $category->category_id ? ' active' : '')?>"><?= \yii\helpers\Html::a($category->name, ['catalog/category', 'category' => $category])?></li>
<?php endforeach;?>
</ul>
<?php if(!empty($wrapper)) :?>
    <div class="both"></div>
</div>
<?php endif?>