1

I have a mysql databased with many tables and fields. I would like to quickly generate a set of prototype forms based on the mysql database (or create table statements). Anyone have any suggestions? html form code would be great. Full PHP validation and insert updates would be even better. Also Zend framework code would be ideal.

I was looking at mySQL workbench which has an excelent reverse engineering and visual presentaion of databases, but no form generator.

1
  • A long time ago my java instructor had a java BeanWizard. He would point the BeanWizard to the Mysql table and generate all of the CRUD from it. The result was jsp files and some class files. I'm sure you could do the same. maybe try using Velocity. My coworker just created his own thing using PHP. Personally I dont like it becasue I still would have to create 3 different files. Basically, my coworker's version doesnt reduce the level of work, and it mostly revolves around maintaining angular/bootstrap functionality. I'd rather create a new one from scratch working off of the Mysql tables. Commented Sep 8, 2015 at 20:23

2 Answers 2

2

You're looking for a thing called scaffolding.

Scaffolding is a meta-programming method of building database-backed software applications. It is a technique supported by some model-view-controller frameworks, in which the programmer may write a specification that describes how the application database may be used. The compiler uses this specification to generate code that the application can use to create, read, update and delete database entries, effectively treating the template as a "scaffold" on which to build a more powerful application.

Please note that ZF and other PHP frameworks are not MVC frameworks - at least those popular like ZF, Symfony, Kohana, CakePHP etc.

It seems that ZF has built-in support for scaffolding: Zend_Controller_Front_Scaffold.

Sign up to request clarification or add additional context in comments.

Comments

0

well, what you want is a little too much specific (not saying that it doesn't exist). maybe this could help you with the boring task of writing the html tags:

http://code.google.com/p/zen-coding/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.