You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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,
]);
}
}