public function run()
{
$ownerId = Yii::$app->request->get('ownerId');
if (!$ownerId) {
throw new NotFoundHttpException();
}
$searchClass = new $this->searchClass();
$searchClass->innerJoinWith = [$this->ownerRelation => function ($q) use($ownerId) {
$q->andWhere([$this->ownerTable . ".id" => $ownerId]);
}];
$method = Yii::$app->request->isPjax ? 'renderAjax' : 'render';
$this->controller->{$method}($this->view, ['ownerId' => $ownerId, 'dataProvider' => $searchClass->search([])]);
throw new NotFoundHttpException(Yii::t('fileupload', 'Page not found'));
}