mevdschee / php-crud-ui

Single file PHP script that adds a UI to a PHP-CRUD-API project
MIT License
123 stars 55 forks source link

Load config.php without modifying ui.php? #51

Closed zemian closed 3 years ago

zemian commented 3 years ago

It would nice to able to load a config.php with parameters without have to modify ui.php itself.

In your PHP-CRUD-API project, you have included a "api.include.php" that user may create their own api.php, but not so with ui.php? Because of this, user must modify ui.php to setup any config changes. Hence I propose to either support same include file, or better yet auto detect a config.php file that let user set parameters.

mevdschee commented 3 years ago

Thank you for this issue. Good request! The build script can be extended with this functionality, just like in the PHP-CRUD-API project.

mevdschee commented 3 years ago

Supported in v2.1.3