For example, if my table is storing a user id, but I wish to use CListView to sort by the user name in the user table, how can I best implement this?
<?php $this->widget('zii.widgets.CListView', array( 'dataProvider'=>$dataProvider, 'itemView'=>'_view', 'sortableAttributes'=>array( 'user_id.name', ), )); ?>
and a number of other shot in the dark approaches, but obviously I am missing something very fundamental. Can anyone here point me in the right direction?
Thanks so much.