22 lines
321 B

<?php
/**
* Created by Error202
* Date: 19.07.2018
*/
namespace core\widgets\menu;
use core\entities\menu\Menu;
use yii\base\Widget;
class MenuWidget extends Widget
{
public $menu_id;
public function run() {
$menu = Menu::findOne($this->menu_id);
return $this->render('menu', [
'menu' => $menu,
]);
}
}