/** Lookup Client for select2 * * @throws CHttpException */ public function actionGetCategory2() { if (isset($_GET['term'])) { $term = trim($_GET['term']); $ret['results'] = Category::getCategory2($term); //PHP Example ยท ivaynberg/select2 http://bit.ly/10FNaXD got stuck serveral hoursss :| echo CJSON::encode($ret); Yii::app()->end(); } }