jan-vandenberg / cruddiy

No-code Bootstrap PHP CRUD generator
http://cruddiy.com
GNU Affero General Public License v3.0
253 stars 80 forks source link

Feature/custom dest folder #119

Closed germain-italic closed 11 months ago

germain-italic commented 11 months ago

This PR lets you set a custom folder for generated CRUD pages!


Custom directory

Warning: depending on your web server configuration (Directory Index), if you generate outsite the project root directory or the core folder, your CRUD pages may not be accessible in the browser.


Blacklist for reserved folder names

Users are not allowed to name their folder after existing directories such as "core", "locales", "tests"

Config reloading

Since PR #73 Cruddiy remembers the config from the previous run of the generator.

However, what happens when there runs in different directories?

If you generated into core/, Cruddiy will parse subfolders and let you decide which config you want to reload:

This works from any page: core/index.php, core/tables.php, core/columns.php...

We could eventually let users select a directory outside core if there is demand for that.


Restart after generation

It's easier now:

You can even restart from scratch if you don't want to re-use any previous run.


Also in this PR


Please comment or open tickets if you spot any bug.

Happy CRUDing!