public function actionRenderRow($id)
    {
        $this->layout = false;

        if ($media = $this->findModel($id)) {
            return $this->render('mediaRow', [
                'media' => $media,
                'isNew' => true,
            ]);
        }
        return '';
    }
public function actionRenderRow($id)
    {
        $this->layout = false;

        if ($media = $this->findModel($id)) {
            return $this->render('mediaRow', [
                'media' => $media,
                'isNew' => true,
            ]);
        }
        return '';
    }
public function actionRenderRow ( $ id ) { $ this -> layout = false ; if ( $ media = $ this -> findModel ( $ id ) ) { return $ this -> render ( 'mediaRow' , [ 'media' => $ media , 'isNew' => true , ] ) ; } return '' ; }
Get data about requested media and return as row
@param $id
@return string
@throws NotFoundHttpException
Get data about requested media and return as row