/** * 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; }
public function actionView() { PermisosController::permisoAdministrador(); $tabla = new UsuarioTabla(); return $this->render("View", ["model" => $tabla->find()->all()]); }