Example #1
0
 public function actionGetFeaturesByValue()
 {
     if (Yii::$app->getRequest()->isAjax && Yii::$app->request->post('value_id')) {
         return json_encode(Features::getByValue(Yii::$app->request->post('value_id')));
     }
 }