ArtiGrid
v1.6

Mode Insert From

ArtiGrid allows you to generate standalone insert forms using the render('insert') mode.

This mode displays only the form for creating new records, without showing the grid.

You can combine it with formFields() and validation methods to fully control which fields are displayed and required.


<?php
    $grid = new ArtiGrid();
    $grid->table('payments')
        ->template('bootstrap5')
        ->required(false)
        ->validation_required('customerNumber')
        ->validation_required('checkNumber');
    echo $grid->render('insert');
?>