jonseg / crud-admin-generator

An open source tool to generate a complete backend from a MySql database.
http://crud-admin-generator.com/
MIT License
1.43k stars 441 forks source link

Easiest way to remove a table? #109

Closed isaachinman closed 7 years ago

isaachinman commented 7 years ago

Thanks for this project, it's helped us get an admin backoffice up and running very quickly.

Quick question: what's the easiest way to remove a table from the application? There are some tables in our database which we do not want to allow reading or writing of, and thus need to be removed from the automatically-generated content provided by this application.

If I simply remove lines from web/controllers/base.php, I get a bunch of errors.

isaachinman commented 7 years ago

@jonseg ?

jonseg commented 7 years ago

You need remove the line in /web/controllers/base.php that includes (require_once) the file relationed with the table. Also, you need find the menu option that load your table in /web/views/menu.html.twig and remove it too.

Regards.

isaachinman commented 7 years ago

Got it, thanks. It was the menu.html.twig bit that wasn't so clear. Cheers again for a great project.