Yii Framework : Join table (or other SQL) in data provider?
问题 Background I have used Gii Crud Generator with my "Category" model, and I want to modify the admin form. I look inside "protected/views/Category/admin.php, I found the table is render by a widget('zii.widgets.grid.CGridView'), and it using a data Provider for it's data. I suppose I can find some where to input the SQL query in the data Provider, but I don't understand about how's it works. these is the code In the Model->relations(), but I don't know what to do next. public function relations