Jumat, 16 Maret 2012

Setting Config di Framework Code Igniter Untuk Bisa Diakses Di Client : Studi Kasus Client-Server

1. Pertama Kali Setting config.php di : C:\wamp\www\katalogcoba\application\config
2. Buka file config.php dengat editor, ex. Notepad++
3. Lalu Cari variabel $config['base_url'] = 'http://localhost/search_paging/';



/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
| http://example.com/
|
| If this is not set then CodeIgniter will guess the protocol, domain and
| path to your installation.
|
*/
$config['base_url'] = 'http://localhost/search_paging/';

4. Diganti variabelnya dengan nomor ip komputer atau dikosongkan saja, seperti dibawah ini:

| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
| http://example.com/
|
| If this is not set then CodeIgniter will guess the protocol, domain and
| path to your installation.
|
*/
<$config['base_url'] = ' ';

5. Jangan lupa disave file config.php setelah dilakukan perubahan, klo khawatir dengan code yang sebelumnya akan hilang di backup dulu ya filenya

6. Coba jalankan lagi aplikasinya

7. Pasti Berhasil....selamat

8. Klo belum berhasil restart dulu wamp atau xamp atau webserver yang dipakai