I’m running a query with a CActiveDataProvider and producing a list that I push into a CActiveForm->dropDownList. The query returns data but its always limited to 10 results. I tried adding a CDbCriteria and set the limit to -1 thinking it would return all the results but it didn’t work. How can I run it in a way that all of the data ends up in the list.
Here is my code for the getSites function:
public function getSites()
/*$criteria = new CDbCriteria();
foreach($data as $s)
$return[$s->siteID] = $s->siteName;