Rename-cols
This example demonstrates how to rename a column in your ArtiGrid CRUD table.
$grid->colRename("namecol", "newnamecol")
This method changes the column name from "namecol" to "newnamecol". It is useful when you want to display a more friendly or readable column name in your grid without modifying the database itself.
<?php
require 'ArtiGrid.php';
$grid = new ArtiGrid();
$grid->table('million')
->colRename("namecol", "newnamecol") // rename name col
->modal();
echo $grid->render();
?>