/** * Serves a list of suggestions matching the term $term, in form of * a json-encoded object. * @param string $term the string to match */ public function actionSuggest($term = '') { die("Heelo!"); $this->serveJson(Vehicles::model()->findMatches($term)); }