Hi,
Got this little task today... I have to list and paginate by two models in one list (these models share five fields, which will be displayed in one table).
Page 1 of 1
Complex pagination and sort
#4
Posted 19 January 2010 - 02:58 PM
Nope, these are something like Issue and Task tables, which share some fields and should be listed in one table. I'm aware of the fact, that it's not direct Yii question.
#6
Posted 22 January 2010 - 05:02 AM
You may need to develop a view class (like a database view, not Yii's view) like:
class CombinedModel extends CModel {...}
But there'd be a whole lot of redevelopment for the findXXX(), count(), setXXX() (and other similar) methods.
But Yii and its community would be greatful if you could share the result :-)
class CombinedModel extends CModel {...}
But there'd be a whole lot of redevelopment for the findXXX(), count(), setXXX() (and other similar) methods.
But Yii and its community would be greatful if you could share the result :-)
Share this topic:
Page 1 of 1

Help













