2 Tables Relation

Good day to all masters, im new to yii and i have a project in school about my database with 2 tables, named studentP and studentS.

studentP have a row called studentNumber,Fname,Lname,Middle and StudentS have a row callde studentNumber,Scholl,Year,Section

i create A CRUD for that 2 tables,

and i want to show the information of all the students from both the tables on one page or enter data once for one student from one interface? like this:

studentNumber

Fname

Lname

School

Year

Section.

Can you please give us more information or correct me if i am wrong.

Do you mean that you want to show the information of all the students from both the tables on one page or enter data once for one student from one interface?

If yes, then you can use relation and there are few tricks to combine the CRUD

If you provide us with more information we can help you, its not very clear from what you have mentioned.

Cheers

yes sir i want to show the information of all the students from both the tables on one page or enter data once for one student from one interface… can u give me a trick?

please do take look at the relational active record

http://www.yiiframework.com/doc/guide/1.1/en/database.arr