["class" => "table table-bordered", "border" => "2"], 'baseUrl' => "/admin/user", ])); $table->beforePrint(function () use ($option) { $btn = PrimaryBtn::create("Список", "/admin/option")->fetch(); $btn .= SuccessBtn::create("Редактировать", "/admin/option/update/" . $option->id)->fetch(); $btn .= DangerBtn::create("Удалить", "/admin/option/delete/" . $option->id)->fetch(); return $btn; }); $table->create(); $table->render();