Skip to main content

Codeigniter Ga Bisa Jalan di XAMPP 1.7.3

May 8, 2010 by bonkzero

bonkzero's picture

Haiii All.............sebelumnya sy bru bergabung dsini, trus sy juga pemula dalam menggunakan CI, ad yang mau ditanyakan gimana yah kalo supaya CI bisa jalan di XAMPP 1.7.3??? ko ga mau jalan ya...... padahal saya udah ngikutin petunjuk penggunaannya atau mungkin ad yg salah y....?? mohon bantuannya............ :D:D

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

BLS:

May 9, 2010 by syabac, 1 year 38 weeks ago
Comment: 6836

syabac's picture

Ga jalan gimana maksudnya? error aplikasi atau apa?
harusnya sih oke2 saja..

kalo ada ada error, apa pesan errornya?

Base Path

May 9, 2010 by bonkzero, 1 year 38 weeks ago
Comment: 6837

bonkzero's picture

Ia mas gini ak kan dah download CI versi 1.7.2, trus disimpannya d htdocs ak beri nama ci aj..........
menurut tutorial yg ak baca di konfigurasi dulu file yang di application/config/config.php, kemudian atur base-URL nya jadi path yg ak inginkan, itu udh diatur jadi http://localhost/ci.
trus ak coba tes koding percobaannya ky gini :

class Hello extends controller
{
function index()
{
$this->load->view('helloview');
}
}

file ini ak kasih nama hello.php, ak simpan fileny di direktori system/application/controllers, ktanya ntu sebagai kontrolerny....

trus ak buat lgi file keduanya sebagai view isinya

echo “Hello World”;

nah ini aku kasih nama helloview.php. dan ak simpan di direktori system/application/views

trus aku running deh dari URL http://localhost/ci/hello
menurut tutor nya kalo ak dah ngatur base URL nya seharusnya program diatas bisa dijalankan khan???
tapi ko malah Server Not Found yah.....????^&%^&%!@#hehehehe...
Maaf pertanyaannya kurang berbobot, maklum pemula :D:D:D

BLS:

May 9, 2010 by syabac, 1 year 38 weeks ago
Comment: 6839

syabac's picture

ooh,..
file config/config.php

 
config['base_url'] = 'http://localhost/ci/';

trus pas akses dari browser jangan lupa ditulis index.php-nya..

http://localhost/ci/index.php/hello

klo mau akses yang ga ada index.php ( http://localhost/ci/hello ), harus dibuatkan file .htaccessnya.

isinya kira2 begini:

RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]

Yuhuuuuuuuiiii

May 9, 2010 by bonkzero, 1 year 38 weeks ago
Comment: 6841

bonkzero's picture

Okeeee Thx Mas Symsul......... jadi semangadh nih............. :D:D:D

Premium Drupal Themes by Adaptivethemes