How To Display Data From 10 Different Tables?

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?

Welcome to the forum sravani_hft

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 :)