|
@@ -55,6 +55,7 @@ class IndexController extends Controller
|
|
}
|
|
}
|
|
public function actionContentpage(){
|
|
public function actionContentpage(){
|
|
$pages=ContentPage::find()->asArray()->all();
|
|
$pages=ContentPage::find()->asArray()->all();
|
|
|
|
+ \Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;
|
|
return [
|
|
return [
|
|
'code' => 200,
|
|
'code' => 200,
|
|
'data'=>$pages,
|
|
'data'=>$pages,
|