/** Render model info * @param int $id * @param string $strictThumb only this thumb will be selected * @return string */ public function actionInfo($id, $strictThumb = null) { $model = Mediafile::findOne($id); Yii::$app->assetManager->bundles = false; return $this->renderAjax('info', ['model' => $model, 'strictThumb' => $strictThumb]); }
/** * Load model by id * @param int $id * @return Mediafile */ private function loadModel($id) { return Mediafile::findOne($id); }