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.
26 lines
430 B
26 lines
430 B
<?php |
|
/** |
|
* Created by Error202 |
|
* Date: 10.07.2018 |
|
*/ |
|
|
|
namespace common\modules\links\widgets; |
|
|
|
use core\forms\menu\MenuItemForm; |
|
use yii\base\Widget; |
|
|
|
class MenuItemCreatorWidget extends Widget |
|
{ |
|
public int $menu_id; |
|
|
|
public function run(): string |
|
{ |
|
$form = new MenuItemForm(); |
|
$form->module = 'links'; |
|
$form->menu_id = $this->menu_id; |
|
|
|
return $this->render('menu-item/creator', [ |
|
'model' => $form, |
|
]); |
|
} |
|
} |