1. Dengan menggunakan Composer jalankan perintah tersebut: composer create-project codeigniter4/appstarter projekbaru1 2. Setelah terinstall semua file codeigniter4, buka file app/Config/App.php dan set public string $baseURL = ' http://example.com/ ' ; kemudian cuba jalankan di browser. Mungkin URL perlu ke folder Public untuk membuka page. Untuk pindahkan file public ke root, buka folder PUBLIC dan copy index.php & .httaccess file. 3. Paste file index.php dan .httaccess ke root folder dan buka file index.php tersebut dengan Editor. 4. Setelah file index.php dibuka dalam editor, ubah code tersebut; require FCPATH . ' ../app/Config/Paths.php ' ; menjadi ini; require FCPATH . ' app/Config/Paths.php ' ; 4. Setelah itu, masuk ke folder app/Config dan buka file App.php. Ubah code ini; public string $uriProtocol = ' REQUEST_URI ' ; kepada ini; public string $uriProtocol = ' PATH_INFO ' ; Save dan run codeigniter dalam browser men...
Comments
Post a Comment