Download ci PDF

Titleci
File Size2.6 MB
Total Pages112
Table of Contents
                            Code Igniter 2.1.0
Contents
Objectives
System Requirements
                        
Document Text Contents
Page 2

Contents

OVERVIEW ............................................................................................................................................. 4

BAB 1: KONFIGURASI CODEIGNITER .................................................................................................. 5
Task 1 – Konfigurasi CodeIgniter ...................................................................................................... 5

Task 2 – Konfigurasi Tema ................................................................................................................ 6

BAB 2: MEMBUAT LAYOUT UTAMA..................................................................................................... 8
Task 1 – Membuat Controller ........................................................................................................... 8

Task 2 – Membuat View Template ................................................................................................... 8

BAB 3: DATA MODELING .................................................................................................................... 23
Task 1 – Membuat Conceptual Data Model .................................................................................... 23

Task 2 – Relationship pada CDM .................................................................................................... 27

Task 3 – Phisical Data Model .......................................................................................................... 31

Task 4 – Generate Script ................................................................................................................ 33

Task 5 – Intellisense Pada Netbeans & CodeIgniter ........................................................................ 36

BAB 4: MANAJEMEN CONTROLLER ................................................................................................. 38
Task 1 – Inhertiance Pada CodeIgniter Controller ........................................................................... 38

Task 2 – Menampilkan menu secara dinamis ................................................................................. 39

Task 3 – Clean URL pada XAMPP web server .................................................................................. 48

BAB 5: PENGATURAN HAK AKSES ................................................................................................... 50
Task 1 – Pembuatan Desain Halaman Login.................................................................................... 50

Task 2 – Redirect ke halaman login ................................................................................................ 53

Task 3 – Mekanisme Login ............................................................................................................. 54

Task 4 – Pembatasan Hak Akses (menu) ......................................................................................... 64

BAB 6: CRUD ..................................................................................................................................... 68
Task 1 – Menampilkan Data ........................................................................................................... 68

Task 2 – Menambahkan Fitur Pagging ............................................................................................ 73

Task 3 – Insert Data ....................................................................................................................... 80

Task 4 – Edit Data .......................................................................................................................... 93

Task 5 – Delete Data ...................................................................................................................... 99

Task 6 – Validation Rule ............................................................................................................... 102

Page 56

?>

4. Setelah it kita perlu update pula file template “login_view.php” pada direktori “application/views”

agar sesuai dengan controller yang telah kita buat.

Buka file “login_view.php” ubah menjadi seperti berikut :

login_view.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-

strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title>Internet Dreams</title>

<link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/screen.css" type="text/css"

media="screen" title="default" />

<!-- jquery core -->

<script src="<?php echo base_url(); ?>assets/js/jquery/jquery-1.4.1.min.js"

type="text/javascript"></script>



<!-- Custom jquery scripts -->

<script src="<?php echo base_url(); ?>assets/js/jquery/custom_jquery.js"

type="text/javascript"></script>



<!-- MUST BE THE LAST SCRIPT IN <HEAD></HEAD></HEAD> png fix -->

<script src="<?php echo base_url(); ?>assets/js/jquery/jquery.pngFix.pack.js"

type="text/javascript"></script>



<script type="text/javascript">

$(document).ready(function(){

$(document).pngFix( );

});

</script>

</head>

<body id="login-bg">



<!-- Start: login-holder -->

<div id="login-holder">



<!-- start logo -->

<div id="logo-login">

<a href="index.html">

<img src="<?php echo base_url(); ?>assets/images/shared/logo.png" width="156"

height="40" alt="" />

</a>

</div>

<!-- end logo -->



<div class="clear"></div>

<!-- start loginbox ........... -->

Similer Documents