public function actionView() { $id = Yii::$app->request->get('id', 0); if ($id > 0) { $comments = Comments::findTree($id); \Yii::$app->response->format = 'json'; return $comments; } return false; }
public function actionView() { $id = Yii::$app->request->get('id', 0); if ($id > 0) { $comments = Comments::findTree($id); \Yii::$app->response->format = 'json'; return $comments; } return false; }