public function actionCate() { if (Yii::app()->request->isAjaxRequest) { $pid = Yii::app()->request->getParam('pid'); $level = Yii::app()->request->getParam('level'); echo ARCates::getChildOptionStr($pid, $level); } }