MicroFrameWork/kernel/IGTabel/action_column/ViewActionColumn.php

17 lines
399 B
PHP
Raw Normal View History

2024-10-08 13:16:57 +03:00
<?php
namespace kernel\IGTabel\action_column;
use Itguild\Tables\ActionColumn\ActionColumn;
2024-10-31 16:12:02 +03:00
use kernel\helpers\Debug;
2024-10-08 13:16:57 +03:00
class ViewActionColumn extends ActionColumn
{
2024-10-31 16:12:02 +03:00
protected string $prefix = '/view/';
2024-10-08 13:16:57 +03:00
public function fetch(): string
{
$link = $this->baseUrl . $this->prefix . $this->id;
return " <a href='$link' class='btn btn-primary'>Просмотр</a> ";
}
}