Wiki

Articles tagged with "carraydataprovider"X
Displaying 1-4 of 4 result(s).

custom sql query results to CDetailView

Created 7 months ago by KonApazHow-tos2 comments – viewed 8,762 times – ( +3 )
This is a bried guide about displaying of custom sql query results.

multiple CActiveDataProviders in one CGridView

Created 10 months ago by KonApazHow-tos5 comments – viewed 7,973 times – ( +7 / -1 )
There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?

An important tip when you are using CArrayDataProvider.

Created about a year ago by sirin kTips0 comments – viewed 6,472 times – ( +8 / -1 ) – version 1.1
Yii ‘s CArrayDataProvider is very helpful to display model relation data's directly on it.But it is truely a confusing one because by default it will assume a table field named “id” as primary key for its pagination purpose and what if you dont have field named “id” as primary key on your table? so its truely confusing and if you tried to display without an “id” field on ur table you will get an error like “yourmodel.id is not defined”.

Using filters with CGridView and CArrayDataProvider

Created 2 years ago by marcovtwoutHow-tos30 comments – viewed 40,290 times – ( +20 ) – version 1.1
Using filters on CGridView with CActiveDataProvider is easy, but with CArrayDataProvider it is a bit tricky.