I have created an module using gii and now i have added some data into that module ,Now my question is,i want to display only the data with Type=1 on the grid view while user loged in …Can any one help me where is the query for select option and how can i add condition for it.Where we can find the create ,delete and update query for each module in yii web application…