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.
Page 1 of 1
2 Tables Relation
#2
Posted 24 July 2012 - 07:34 PM
dhenet5254, on 24 July 2012 - 06:14 PM, said:
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, when i got to mysite/index.php/StudentP and click one of the list only StudentP i view. my teacer
want that when i click one of the list in StudentP the StudentS lost also will show like:
studentNumber
Fname
Lname
School
Year
Section.
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, when i got to mysite/index.php/StudentP and click one of the list only StudentP i view. my teacer
want that when i click one of the list in StudentP the StudentS lost also will show like:
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
#3
Posted 24 July 2012 - 08:58 PM
Wenceslaus D, on 24 July 2012 - 07:34 PM, said:
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
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?
Share this topic:
Page 1 of 1

Help











