0

I have a mysql database with tables that have one to many relationships with foreign keys linking them.

How can I use gii to create CRUD form pages which will reflect the table relationships?

javastudent
  • 359
  • 1
  • 4
  • 12

1 Answers1

3

I suggest you to take a look at the following article which includes using yii's gii

Creating Your First Yii Application

Ali MasudianPour
  • 14,329
  • 3
  • 60
  • 62
  • it seems like I need to do this for each table, is there a way to generate it from the mysql schema? – javastudent Feb 03 '14 at 19:54
  • You can do in 5 minutes all of them: https://www.youtube.com/watch?v=qX98YK_RnPU also check http://stackoverflow.com/questions/9164733/does-gii-automatically-create-relations-for-generated-models?rq=1 – Pentium10 Feb 03 '14 at 20:06