Skip to content

06. The UI template

Thierry Feuzeu edited this page Oct 6, 2026 · 5 revisions

The ui section in the app.php config file defines the following options.

  • The template in use, both for the page layout and the UI Builder library.
  • The public subdir for the assets.
  • The dialog library to use for toast messages.
  • The SQL editor for queries.

3 admin templates are supported, all based on Bootstrap 5.

Each template is defined with a name and a builder class.

    'ui' => [
        'template' => [
            // SB Admin template: https://startbootstrap.com/template/sb-admin
            // 'name' => 'sb-admin',
            // 'builder' => Lagdo\UiBuilder\Bootstrap5\Builder::class,
            // CoreUI 5 template: https://coreui.io/product/free-bootstrap-admin-template/
            'name' => 'coreui5',
            'builder' => Lagdo\UiBuilder\Bootstrap5\CoreUi\Builder::class,
            // Plain Admin template: https://plainadmin.com/
            // 'name' => 'plain-admin',
            // 'builder' => Lagdo\UiBuilder\Bootstrap5\Builder::class,
        ],
        'assets' => [
            'url' => '/dbadmin',
        ],
        'toast' => [
            'lib' => 'butterup',
        ],
        'query' => [
            // 'cm' for CodeMirror or 'ace' for Ace Editor.
            'editor' => 'cm',
        ],
    ],

Clone this wiki locally