Creating Dataprovider From Object (Stdclass)

Hello everyone.

In my application im invoking an external webservice. The returning of that webservice is an object (stdclass). What im trying to do is to show in a CGridView the result of that call. The main problem i have is that i can’t pass the object as the DataProvider to CGridView… To solve the problem, im converting the object to an Array and then create a CArrayDataProvider.

Isnt there a way to create the DataProvider with object? Because my method is heavy… getting the object, convert to array and then show the results…

Appreciate any help :)

bump to the top