Login & Dashboard Page with CodeIgniter 3
Membuat Sistem Login Lengkap Menggunakan CodeIgniter - Sandhika Galih
# Git
$ git clone https://github.com/gifaldyazkaa/wpu-login-ci3.git
# GitHub CLI
$ gh repo clone gifaldyazkaa/wpu-login-ci3
# Windows (XAMPP)
> move wpu-login-ci3 C:\xampp\htdocs\
# Linux (Apache2)
$ sudo mkdir /var/www/html/wpu-login-ci3 && sudo cp -rv {wpu-login-ci3/*,wpu-login-ci3/.*} /var/www/html/wpu-login-ci3
- Open your phpMyAdmin Page
- Create a new database named
wpu_login
- Select
wpu_login
database - Go to Import tab
- Import database SQL File from
wpu_login.sql
(File is included in root folder of this project)
- You're done. You've created a database named
wpu_login
.
Edit application/config/database.php
with correct database information.
$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost', // Hostname
'username' => 'admin', // Database username
'password' => 'Admin_123', // Database password
'database' => 'wpu_login', // Database name
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => (ENVIRONMENT !== 'production'),
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE
);
$ sudo systemctl start apache2
* Windows user can start Apache server with XAMPP Control Panel.
Open up http://localhost/wpu-login-ci3. It should be like this.
--Root (Admin)--
Email : [email protected]
Password : root1234
--Default (Admin)--
Email : [email protected]
Password : 12345678
--Guest (User)--
Email : [email protected]
Password : 12345678
User at above is already registred at database.
Your application is served and working perfectly. Now, you can start editing Admin Dashboard by editing application/views/admin/index.php
. CRUD Function is not fully implemented. If you want to adding User Roles, etc, You must do it via phpMyAdmin. Sorry for this.
Have you find an error while following the Getting Started Guide? You can Create new issue and inserting Error code, description, and the error image.
wpu-login-ci3 is Licensed under Apache-2.0 License.