Skip to content

Instantly share code, notes, and snippets.

View robhi2031's full-sized avatar
👋
Hi, Are you okay ???

Putu Robhi Sanjaya robhi2031

👋
Hi, Are you okay ???
View GitHub Profile
@robhi2031
robhi2031 / index.html
Last active December 21, 2022 07:38
Using Select2 From Api Data With SortResponse
<html>
<head>
<title>Using Select2</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<!-- Select2 CSS -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/select2.min.css" rel="stylesheet" />
</head>
<body>
<div class="jumbotron">
@robhi2031
robhi2031 / setting-dynamic-base-url-in-codeigniter-4.md
Last active May 22, 2022 04:08
Setting Dynamic base URL in CodeIgniter 4

Setting Dynamic base URL in CodeIgniter 4

  1. Go to the App.php file;
  2. In section public $baseURL = 'http://localhost:8080/';, and replace with this script:
    public $baseURL;
    public function __construct()
    {
        if (!empty($_SERVER['HTTPS'])){
 $root = "https://".$_SERVER['HTTP_HOST'];
@robhi2031
robhi2031 / disable-autocomplete-autofill-form-html.md
Last active August 24, 2021 17:20
Disable Autocomplete and Autofill On HTML Form Input

Disable Autocomplete and Autofill On HTML Form Input

  1. Add autocomplete="off" onto <form> element;
  2. Add hidden <input> with autocomplete="false" as a first children element of the form.
<form autocomplete="off" method="post" action="">
    <input autocomplete="false" name="hidden" type="text" style="display:none;">
    ...