Yii Framework Forum: How To Display Data From 10 Different Tables? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How To Display Data From 10 Different Tables? Rate Topic: -----

#1 User is offline   sravani_hft 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 20-October 12
  • Location:India

Posted 27 November 2012 - 07:12 AM

Hi Everyone,

I am learning YII framework which is very interesting. As I understood in yii.. there will be one model for one table. But in my application I would like to display data from 10 different tables.

Could anyone please help me?
0

#2 User is offline   kokomo 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 289
  • Joined: 23-July 10

Posted 27 November 2012 - 10:27 AM

Welcome to the forum sravani_hft Posted Image
Simple create your 10 model classes with help of Gii and set up the relations between the tables. No difference in selecting from 2 or 3 tables or from 10 tables.

A good start point is the guide and the wiki section (e.g. Yii for beginners).

If you have further specific questions please post them here in the forum and provide all relevant informations (e.g. what the code should do, error messages, relevant code formatted in
[code]-Tags (<> symbol in forum editor)
,...)
0

#3 User is offline   developer! 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 110
  • Joined: 28-November 12

Posted 03 January 2013 - 07:59 AM

View Postkokomo, on 27 November 2012 - 10:27 AM, said:

Welcome to the forum sravani_hft Posted Image
Simple create your 10 model classes with help of Gii and set up the relations between the tables. No difference in selecting from 2 or 3 tables or from 10 tables.

A good start point is the guide and the wiki section (e.g. Yii for beginners).

If you have further specific questions please post them here in the forum and provide all relevant informations (e.g. what the code should do, error messages, relevant code formatted in
[code]-Tags (<> symbol in forum editor)
,...)



nice links..Thanks :)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users