Giter Club home page Giter Club logo

ci-login-crud's Introduction

CodeIgniter-Login-Bootstrap-CRUD

1. Extrak Framework CI

2. Import database db-buku.sql

3. application/config/autoload.php
Awal Baris 92 :
$autoload['helper'] = array('');
Edit :
$autoload['helper'] = array('url','form');


Awal Baris 61 :
$autoload['libraries'] = array('');
Edit :
$autoload['libraries'] = array('database');

4. application/config/database.php ubah baris 78-81
'hostname' => 'localhost',
'username' => 'root',
'password' => '',
'database' => 'db_buku',

5. application/config/config.php ubdah baris 26
$config['base_url'] = '';
Edit
Alamat disesuaikan dengan nama project
$config['base_url'] = 'http://localhost/ci-login-crud/';

6. Tambah folder asset
Folder ini berisi file bootstrap dan js

7. Tambahkan/Edit beberapa file berikut

  • application/controllers/C_buku.php -> Controller untuk tambah, tampil, edit dan hapus buku
  • application/controllers/C_login.php -> Controller untuk login user
  • application/controllers/C_page.php -> Controller untuk mengarahkan ke View Tampil buku
  • application/models/M_buku.php -> Menghubukan controller dengan Database Data Buku
  • application/models/M_login.php -> Menghubukan controller dengan Database Login User
  • application/view/buku/v_edit.php -> File untuk edit data buku
  • application/view/buku/v_tambah.php -> File untuk tambah data buku
  • application/view/buku/v_tampil.php -> File untuk tampil data buku

8. application/config/routes.php ubah baris 52
$route['default_controller'] = 'C_buku';

9. Buka dengan Link berikut
localhost/ci-bootstrap-crud

(catatan ini adalah lanjutan dari repository ci-crud-tambah)

ci-login-crud's People

Contributors

kuriyantoadi avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.