Admin Panel Tree structure, files and logic

PHP CRUD Generator Admin Panel is built on a clean structure
and complies with good practices.

The Admin Panel content - READ Lists and Forms - can be easily customized
by any user with the necessary coding skills.


The Main Logic


Admin Panel tree structure

  • your-project-root
    • admin The target website admin panel in which the CRUD files will be generated
      • assets css, js & images
      • class
        • altorouter The main router
        • crud CRUD elements classes generated by PHPCG
          • Table.php The main Object for each of your database tables generated by PHPCG
            where Table is the name of each of your database tables.
            Each Object extends the main Elements parent class.
          • Elements.php Main Parent class for all Table objects.
            Gets the table data (names, fields, ...) from admin/crud-data/db-data.json
        • export xls & csv export class
      • crud-data CRUD json files generated by PHPCG (db, nav, filter & select data)
        • table-filter-data.json The READ lists filters for each of your database tables generated by PHPCG
          where table is the name of each of your database tables.
        • table-select-data.json Used to build the select dropdown lists for each field, including relations & custom values.
          table is the name of each of your database tables.
        • db-data.json Main database values stored by PHPCG: items, table labels, object class names, primary keys, ...
        • nav-data.json The Admin panel sidebar settings with categories & tables.
      • i18n Translation files
      • inc
        • forms The Create/Read/Delete forms generated by PHPCG
        • ... Other files for internal use
      • secure The authentification module
      • templates The READ lists TWIG templates generated by PHPCG
      • .htaccess
      • 404.html
      • data-forms.php
      • data-list.php
      • home.php
      • index.php
      • login.php
      • logout.php

Back to Knowledge Base