$page_number, 'perPage' => 8, 'params' => ["class" => "table table-bordered", "border" => "2"], 'baseUrl' => "/admin/module_shop", ])); $table->columns([ 'status' => function ($data) { return ModuleShop::getStatus()[$data]; } ]); $table->beforePrint(function () { return PrimaryBtn::create("Создать", "/admin/module_shop/create")->fetch(); //return (new PrimaryBtn("Создать", "/admin/user/create"))->fetch(); }); $table->addAction(\app\modules\module_shop\table\columns\ModuleShopViewActionColumn::class); $table->addAction(\app\modules\module_shop\table\columns\ModuleShopEditActionColumn::class); $table->addAction(\app\modules\module_shop\table\columns\ModuleShopDeleteActionColumn::class); $table->create(); $table->render();