/**
  * Lists all Conocimiento models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new ConocimientoSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
Exemplo n.º 2
0
 /**
  * Displays a single Usuario model.
  * @param integer $id
  * @return mixed
  */
 public function actionView($id)
 {
     $searchModel = new ConocimientoSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('view', ['model' => $this->findModel($id), 'dataProvider' => $dataProvider, 'searchModel' => $searchModel]);
 }