Код: Выделить всё
class TripController extends ActiveController
{
public $modelClass = 'modules\mapping\models\Trips';
public function actions() {
$actions = parent::actions();
$actions['index']['prepareDataProvider'] = [$this, 'prepareDataProvider'];
return $actions;
}
public function prepareDataProvider() {
$searchModel = new SearchSearch();
return $searchModel->search(\Yii::$app->request->queryParams);
}
}
Как можно вывести данные от зависимых таблиц через restfull?