action button widget

This commit is contained in:
2024-11-19 11:21:46 +03:00
parent f4b0f006aa
commit 202d265cab
5 changed files with 28 additions and 5 deletions

View File

@ -0,0 +1,16 @@
<?php
namespace kernel\widgets;
use kernel\Widget;
class ActionButtonWidget extends Widget
{
public function run(): void
{
$icon = $this->data['icon'];
$btn = $this->data['btn'];
$url = $this->data['url'];
$this->cgView->render('/admin/action_button.php', ['icon' => $icon, 'btn' => $btn, 'url' => $url]);
}
}