Comparing
#15 with
#17
Content
[...]
{
return 'Green';
}
}
public function rules()
{
return array(
array('varColour', 'safe', 'on'=>'search')
,
);
}
public function attributeLabels()[...]
```
SCENARIO 3
----------
### Display all records from two different tables in the same gridview
In scenario 1 and 2, I used records from a single table and then spiced them up - perhaps with data from another table.
But in this scenario I want to display all records from both tables in a gridview.
Check out this wiki and comment:
[Wiki](http://www.yiiframework.com/wiki/517/multiple-cactivedataproviders-in-one-cgridview/#c19844 "Wiki")