ArtiGrid
Mode Edit Form
ArtiGrid also allows you to generate standalone edit forms using the
render('edit', id) mode.
This mode loads the form with existing data from the specified record ID, allowing you to edit it without displaying the full grid.
It is useful for creating dedicated edit views or integrating forms into custom workflows.
<?php
$grid = new ArtiGrid();
$grid->table('payments')
->template('bootstrap5')
->required(false)
->validation_required('customerNumber')
->validation_required('checkNumber');
echo $grid->render('edit', 11);
?>
ArtiGrid Error: Record with ID 11 does not exist in table payments.