示例#1
0
 /**
  * Finds user by username
  *
  * @param  string      $username
  * @return static|null
  */
 public static function findByUsername($username)
 {
     foreach (UsuarioTabla::find()->all() as $user) {
         if (strcasecmp($user['NOMBRE_USUARIO'], $username) === 0) {
             return new static($user);
         }
     }
     return null;
 }
示例#2
0
 public function actionView()
 {
     PermisosController::permisoAdministrador();
     $tabla = new UsuarioTabla();
     return $this->render("View", ["model" => $tabla->find()->all()]);
 }