Skip to main content

CodeIgniter Untuk Pemula

February 26, 2008 by admin

admin's picture

Hallo Teman-teman pemula CodeIgniter !!
Saya juga seorang pemula, mari kita memulai pelajaran dasar CodeIgniter :

1. Downloadlah CI (CodeIgniter) di http://codeigniter.com/download.php (saat tutorial ini ditulis, versi yang saya download adalah CodeIgniter_1.6.0.zip)
2. Ekstraklah file CodeIgniter_1.6.0.zip di folder yang bisa diakses web
3. Akses web di mana CI berada, secara default akan tampil halaman welcome.

Ok mari kita ganti halaman welcome dengan halaman yang kita buat sendiri :

1. Bukalah file routes.php di folder CodeIgniter_1.6.0/system/application/config
2. Ganti $route['default_controller'] = "welcome"; dengan $route['default_controller'] = "pemula";
3. Buatlah file pemula.php di folder CodeIgniter_1.6.0/system/application/controllers/
4. Isi file pemula.php seperti berikut :

<?php
class Pemula extends Controller {
	function Pemula()
	{
		parent::Controller();	
	}
	function index()
	{
		$this->load->view('pemula_view');
	}
}
?>

5. Buatlah file pemula_view.php di folder CodeIgniter_1.6.0/system/application/views
6. Isi file pemula_view.php sebagai berikut :

<html>
<head>
<title>PEMULA</title>
</head>
<body>
<h1>Saya benar-benar seorang pemula</h1>
</body>
</html>

7. Akseslah folder CodeIgniter_1.6.0 dengan browser Anda, Mamamiaaaaaaa...... Anda benar-benar seorang PEMULA !!!

Bersambung ......

Comments

like dis

July 25, 2011 by somploc, 9 weeks 5 days ago
Comment: 8716

somploc's picture

versi 2 dir-ny dah beda lagi om master

ane pemula bgt ne...

April 11, 2011 by topbienk, 24 weeks 5 days ago
Comment: 7981

topbienk's picture

ane dah install xampp n download CI ne...
nah pas di extrak kagak ke folde htdoc malah error...
napa ya...
kasih pencarahan donk

solve

July 28, 2011 by Away Syereadi, 9 weeks 2 days ago
Comment: 8749

Away Syereadi's picture

error dmnnya bro?
coba jalanin http://localhost/namafolderCI-nya

Kok error

March 30, 2011 by fbachri, 26 weeks 3 days ago
Comment: 7891

fbachri's picture

sori bener2 newbie,

saya praktikan kok error yah

Fatal error: Class 'Controller' not found in C:\xampp\htdocs\Code_Ignitor\application\controllers\pemula.php on line 2

apa yang salah yah??

Rgds,
Fauzie

solve

July 28, 2011 by Away Syereadi, 9 weeks 2 days ago
Comment: 8748

Away Syereadi's picture

versi 2++ dah ga pke Controller tp CI_Controller

class Pemula extends CI_Controller{
	function index()
	{
		$this->load->view('pemula_view');
	}
}

Itu tutorial versi CI 1x mas,

March 31, 2011 by admin, 26 weeks 3 days ago
Comment: 7892

admin's picture

Itu tutorial versi CI 1x mas, CI 2x beda lagi..

pebandingan

July 22, 2011 by hakiki, 10 weeks 1 day ago
Comment: 8685

hakiki's picture

haloo q ini masih pemula bgt bru mulai pelajari ci 2 hari yang lalu, kalo script ci diatas di buat di ci_1.7 ,, bisa gak?

Pantesan ngga jadi2 . baris

October 15, 2010 by adimaryanto, 50 weeks 1 day ago
Comment: 7230

adimaryanto's picture

Pantesan ngga jadi2 .
baris $route['default_controller'] = "welcome"; ada dua

dan yang diganti menjadi $route['default_controller'] = "pemula"; itu yang paling bawah.

*/

$route['default_controller'] = "pemula";
$route['scaffolding_trigger'] = "";

/* End of file routes.php */
/* Location: ./system/application/config/routes.php */

Kyknya asik neh CI, tapi kudu mateng CSS sama HTML

new bie tolongin

February 18, 2010 by taniarto, 1 year 32 weeks ago
Comment: 5937

taniarto's picture

Untuk konteks :
Ekstraklah file CodeIgniter_1.6.0.zip di folder yang bisa diakses web
3. Akses web di mana CI berada, secara default akan tampil halaman welcome

Itu maksudnya gimana y? khususnya diakses web apakah setelah diextract langsung manggil via browser ..lalu ngetik apa? sehingga muncul menu apa ya? sama akses dimana CI berada? maksudnya gimana ya? tolong bantuannya

Thanks berrraaattt

ada yang punya tutorial full

February 17, 2010 by zerss, 1 year 32 weeks ago
Comment: 5933

zerss's picture

ada yang punya tutorial full nya ga ya?? aku minta donk..

Setelah CodeIginiter

January 11, 2010 by jhhyt, 1 year 37 weeks ago
Comment: 5819

jhhyt's picture

Setelah CodeIginiter terinstall dengan sempurna (dapat dibaca disini). Langkah selanjutnya adalah membuat 4 buah file yang akan kita jadikan konten, dan controller yang akan memanggil file-file tersebut dan menggabungkannya menjadi sebuah halaman web utuh. -desain.css Terlebih dahulu, buatlah direktori khusus CSS di root pada server (kita menggunakan folder dengan nama CSS) dimana kita akan meletakkan file desain.css tersebut kedalam direktori tersebut. Isi dari css kita yang sederhana adalah sebagai berikut :

fungsi

March 25, 2009 by Alkautsar, 2 years 27 weeks ago
Comment: 253

Alkautsar's picture

om,
contoh penggunaan fungsi remap dong?

thanks

ada web example

March 4, 2009 by Anonymous, 2 years 30 weeks ago
Comment: 234

Anonymous's picture

mas mau nanya dong..

ada link buat download web yang pake CI gag?

jadi web sama isinya tapi yang dibuat pake CI..buat dijadii contoh..

thanks before

wei...???

December 10, 2008 by Runner0, 2 years 42 weeks ago
Comment: 152

Runner0's picture

wei...??? bersambung?
eh..kalo dimasukan ke dalam htdoc, pake folder beda ya?misal 'codeigniter'
trus kalo buat file.php(aplikasi kita) kudu musti dimasukkan ke folder 'codeigniter'?tul gk?
please reply...

Bener-bener pemula neh...

December 5, 2008 by busan, 2 years 42 weeks ago
Comment: 143

busan's picture

Wah... asik, ada komunitas CodeIgniter... hehehe...

Para senior... kalo boleh tahu... drupal itu bikinya pake Code igniter bukan yah??

www.ucoz.com Mantap !

January 16, 2009 by warezyn0t, 2 years 37 weeks ago
Comment: 200

warezyn0t's picture

Sudah ada yg coba belum mengenai free web hosting, bagus banget dan mudah untuk kustomisasinya.

salam hormat,
http://warezy.at.ua

terjemahan UserGuide

October 22, 2008 by kaqfa, 2 years 49 weeks ago
Comment: 85

kaqfa's picture

CI dibundle dengan user guide yang lengkap dan mudah dipahami, tapi mungkin bagi beberapa orang yang kurang terbiasa dengan bahasa inggris masih mencari2 tutorial dalam bahasa Indonesia, ada yang mau ikut nerjemahin dalam b. Indonesia?
aku masih kurang confident dengan kemampuan inggrisku nih....

iNGGRIS siapa takut

July 29, 2009 by hendyprima, 2 years 9 weeks ago
Comment: 5586

hendyprima's picture

santai mas,pelan tapi pasti anda juga akan mengerti bahasa inggris,jangan sampai anti ama inggris..semangat

hehehe

March 25, 2009 by davidhehehe, 2 years 27 weeks ago
Comment: 254

davidhehehe's picture

mau.... buat nya per halaman aja...

Referensi buat bikin site

April 7, 2008 by sylvana, 3 years 25 weeks ago
Comment: 11

sylvana's picture

Referensi buat bikin site utuh dengan code Igniter dimana ya

re : bikin website utuh pake CI

February 22, 2009 by cichil, 2 years 31 weeks ago
Comment: 226

cichil's picture

coba download e-book Wrox,.Professional.CodeIgniter.(2008)
di softarchive, itu ngbahas buat shoppping cart utuh

header footer css

March 29, 2008 by Anonymous, 3 years 26 weeks ago
Comment: 9

Anonymous's picture

Itu sih cuman ngajarin ubah halaman doang. Dari welcome ke pemula.
Ajarin dong cara bikin halaman pake header, footer, dan css yg simple ajah.

BTW: sapa yg mo gabung bikin erp pake codeigniter ?

BUG

hehehhe

March 3, 2008 by pnukeid, 3 years 30 weeks ago
Comment: 6

pnukeid's picture

codeIgniter ini kok kayaknya lebih mudah and simple dari symfony yach... ?

GBU

Editornya Make Apa mas?

February 26, 2008 by jauhari, 3 years 31 weeks ago
Comment: 1

jauhari's picture

Editor CI yang bagus apa ya? di Mac?

kalau aku biasa pakai

March 30, 2009 by mahrizal, 2 years 26 weeks ago
Comment: 733

mahrizal's picture

kalau aku biasa pakai dreamweaver

BLS:

December 13, 2008 by syabac, 2 years 41 weeks ago
Comment: 158

syabac's picture

kalo saya sih pake EasyEclipse for PHP.
coba lihat di http://www.easyeclipse.org/site/distributions/php.html
enak, keren n ga kalah ama Zend Studio...:p

Re: Editornya Make Apa mas?

February 26, 2008 by admin, 3 years 31 weeks ago
Comment: 2

admin's picture

Editor-nya bebas, tapi lebih baik pake editor yang support highlight untuk kode, saya sendiri di linux pake kwrite, di windows mungkin mirip-mirip notepad++

maaf n awam ma linux

March 24, 2009 by Anonymous, 2 years 27 weeks ago
Comment: 250

Anonymous's picture

mas kalo di linux htdocs nya d mana y??
trus kalo buat aktifin panel nya apache dmana y??
trus kok phpmyadmin aku g jalan y??

mav n masih cupu banget...

re-

May 8, 2009 by alimuntaha, 2 years 21 weeks ago
Comment: 3271

alimuntaha's picture

"mas kalo di linux htdocs nya d mana y??"
==>ya tergantung linux nya, kalau suse ya /srv/www/htdocs/
kalo ubuntu cukup /var/www
mandriva : /var/www/html
ato bisa juga buat port sendiri.
"trus kalo buat aktifin panel nya apache dmana y??"
==> tergantung os nya jg. pokok coba setting cari file my.cnf ato php.ini , tapi coba dulu, ane juga baru belajar
"trus kok phpmyadmin aku g jalan y??"
==> mungkin salah masang tempat foldernya phpmyadminnya di pasang, kalo pake ubuntu mudah tinggal apt-get install phpmyadmin pokok konek internet

Re: Editornya Make Apa mas?

February 26, 2008 by sinaryuda, 3 years 31 weeks ago
Comment: 3

sinaryuda's picture

sama pake notepad++ oke juga, tapi teuteup ngetiknya pake keyboard :(

CI bisa di pake untuk lebih dari 1 project gk yah ??

January 27, 2009 by m42h31, 2 years 35 weeks ago
Comment: 215

m42h31's picture

Code Igniter bisa di pakai untuk membuat lebih dari 1 project gk ya ??
aku nyoba blm berhasil...atau emang gk bisa ?

Premium Drupal Themes by Adaptivethemes