module shop crud

This commit is contained in:
2024-10-16 16:06:25 +03:00
parent b7ac923261
commit 209b1e3f29
15 changed files with 414 additions and 22 deletions

View File

@ -0,0 +1,16 @@
<?php
namespace app\modules\module_shop\table\columns;
use Itguild\Tables\ActionColumn\ActionColumn;
class ModuleShopDeleteActionColumn extends ActionColumn
{
protected string $prefix = "/delete/";
public function fetch()
{
$link = $this->baseUrl . $this->prefix . $this->id;
return " <a href='$link' class='btn btn-danger'>Удалить</a> ";
}
}