Exemplo n.º 1
0
 /** 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]);
 }
Exemplo n.º 2
0
 /**
  * Load model by id
  * @param int $id
  * @return Mediafile
  */
 private function loadModel($id)
 {
     return Mediafile::findOne($id);
 }