I think the problem is the default generated "search" method in the activerecord:
class Search extends CActiveRecord {
...
public function search() {
...
return new CActiveDataProvider($this, array(
'criteria'=>$criteria,
));
}
...
}
In the php4 the constructor name is same as the class name: http://www.php.net/manual/en/oop4.constructor.php and it is override the default parent (CActiveRecord) constructor… use an another table/class name, or delete/rename the search() method.