Ejemplo n.º 1
0
 public function actionKimTekst($kim)
 {
     $kim = Hashids::decodeOne($kim);
     if (!$kim) {
         throw new NotFoundHttpException();
     }
     $kimRecord = Kim::findOne($kim);
     if (!$kimRecord) {
         throw new NotFoundHttpException();
     }
     //todo check access ability
     return $this->render('kim_tekst', compact('kimRecord'));
 }
Ejemplo n.º 2
0
 public function getKimRel()
 {
     return $this->hasMany(Kim::className(), ['id' => 'kim'])->viaTable('kim_kursa', ['kurs' => 'id']);
 }