/**
  * Lists all Freelance models.
  * @return mixed
  */
 public function actionViewApp($id)
 {
     //$modelsDriver = Drivers::find()->where(['appilcant_id' => $id])->all();
     $modelsDriver = new ActiveDataProvider(['query' => Drivers::find()->where(['appilcant_id' => $id])]);
     $model = Zform::findOne(['id' => $id]);
     return $this->render('view-app', ['model' => $model, 'modelsDriver' => $modelsDriver]);
 }
 /**
  * Finds the Zform model based on its primary key value.
  * If the model is not found, a 404 HTTP exception will be thrown.
  * @param integer $id
  * @return Zform the loaded model
  * @throws NotFoundHttpException if the model cannot be found
  */
 protected function findModel($id)
 {
     if (($model = Zform::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }