nedarta

Untitled

May 17th, 2021
545
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public function actionView($_lang, $slug)
  2.     {
  3.         $portfolioLang = PortfolioLang::findOne(['lang_id' => $_lang,'slug' => $slug]);
  4.         // Not working anymore. Of course, I could add actionView($_lang, $slug, $id) extra $id parameter...
  5.         //$pictures = PortfolioPicture::find()->where(['portfolio_id' => $id])->orderBy(['sorting'=>SORT_ASC])->all();
  6.  
  7.         $model = $portfolioLang->portfolio;
  8.  
  9.         return $this->render('view', [
  10.             'model' => $model,
  11.             //'picture' => $pictures,
  12.             'langList' => Lang::getList(),
  13.         ]);
  14.     }
RAW Paste Data