John Cargo
John Cargo

Reputation: 2121

Creating HTML form from mysql table like gii of yii framework

Is there any application which automatically creates html form from given mysql table like the one gii does of yii framework.

Or, is there any way, i can use gii for my own purpose without using using yii framework.

I don't want complete CRUD feature in it, Even if it's just list out my data with pagination, that will do my work.

Thanks

Upvotes: 3

Views: 856

Answers (2)

Lambda killed App
Lambda killed App

Reputation: 684

This URL will help you!

http://developer.ifreelance.asia

I found this on facebook page. I use it myself, and this is real handy.

Upvotes: 1

Mihai P.
Mihai P.

Reputation: 9357

Well, if you really think about it, phpmyadmin creates forms using the database structure. The ultimate CMS is phpmyadmin :).

Anyway to answer your question. You can always create your own Gii template that creates it as you need it. I have custom models and custom forms that get created. There is nothing that prevents me from rolling out anything I actually want with Gii.

The only 1 problem that I can think about is that you create the model and then, based on the Yii model you create the CRUD. If you really want to use Gii you should create your own model however you want, create a Yii model too (quite easy to create both, one after the other as you can use 2 different templates) then create the CRUD based on the Yii model, but the CRUD you need.

Probably you can do it directly but I have never tried it.

Point is, you can use Gii to create a model for any ORM. It just creates a text file and you can modify it. The CRUD might require 2 steps but you should also be able to create the CRUN as you want.

Upvotes: 1

Related Questions