option CRUD

This commit is contained in:
2024-09-23 15:33:48 +03:00
parent f4971f1c7d
commit 0f05bc2391
35 changed files with 737 additions and 147 deletions

View File

@ -1,17 +1,17 @@
<?php
namespace app\tables\columns\menu;
use Itguild\Tables\ActionColumn\ActionColumn;
class MenuViewActionColumn extends ActionColumn
{
protected string $prefix = "/";
public function fetch(): string
{
$link = $this->baseUrl . $this->prefix . $this->id;
return " <a href='$link' class='btn btn-primary'>Просмотр</a> ";
}
}
//
//namespace app\tables\columns\menu;
//
//use Itguild\Tables\ActionColumn\ActionColumn;
//
//class MenuViewActionColumn extends ActionColumn
//{
//
// protected string $prefix = "/";
//
// public function fetch(): string
// {
// $link = $this->baseUrl . $this->prefix . $this->id;
// return " <a href='$link' class='btn btn-primary'>Просмотр</a> ";
// }
//}