--- /dev/null
+<?php
+
+namespace app\controllers;
+
+use yii_app\records\AmoStatus;
+
+class MarketplaceController extends BaseController
+{
+ public function actionStatuses() {
+ $this->response->format = \yii\web\Response::FORMAT_JSON;
+ return ['response' => AmoStatus::find()->asArray()->all()];
+ }
+}
\ No newline at end of file
--- /dev/null
+<?php
+
+namespace yii_app\records;
+
+use Yii;
+
+/**
+ * This is the model class for table "amo_status".
+ *
+ * @property int $id
+ * @property string $alias alias статуса
+ * @property string $name наименование статуса на русском
+ */
+class AmoStatus extends \yii\db\ActiveRecord
+{
+ /**
+ * {@inheritdoc}
+ */
+ public static function tableName()
+ {
+ return 'amo_status';
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function rules()
+ {
+ return [
+ [['alias', 'name'], 'required'],
+ [['alias', 'name'], 'string', 'max' => 100],
+ ];
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function attributeLabels()
+ {
+ return [
+ 'id' => 'ID',
+ 'alias' => 'Alias',
+ 'name' => 'Name',
+ ];
+ }
+}