MicroFrameWork/kernel/widgets/ActionButtonWidget.php

16 lines
374 B
PHP
Raw Normal View History

2024-11-19 11:21:46 +03:00
<?php
namespace kernel\widgets;
use kernel\Widget;
class ActionButtonWidget extends Widget
{
public function run(): void
{
2024-11-19 13:41:13 +03:00
$label = $this->data['label'];
$btn_type = $this->data['btn_type'];
2024-11-19 11:21:46 +03:00
$url = $this->data['url'];
2024-11-19 13:41:13 +03:00
$this->cgView->render('/action_button.php', ['label' => $label, 'btn_type' => $btn_type, 'url' => $url]);
2024-11-19 11:21:46 +03:00
}
}