CodeIgniter 4 Training for KDN
Kementerian Dalam Negeri

Tag : Codeigniter 4
Training Date : 18 - 22 July 2022
Location: Kementerian Dalam Negeri, Putrajaya
Introduction :
CodeIgniter is an Application Development Framework - a toolkit - for people who build websites using PHP. Its goal is to enable you to develop projects much faster than you could if you were writing code from scratch, by providing a rich set of libraries for commonly needed tasks, as well as a simple interface and logical structure to access these libraries. CodeIgniter lets you creatively focus on your project by minimizing the amount of code needed for a given task.
This course is designed for students with knowledge of the previous Codeigniter version (version 3,2,1). Those who are new to Codeigniter are welcome to join but must expect a challenging journey in order to grasp the whole content of the training.
Tools that will be used in this class are as follows :-
- Laragon (PHP, Apache, MySQL)
- Visual Studio Code
- Windows 10 / 11
- SQL Yog
- Terminal / Command Line
Each student should have the following minimum PC / Notebook specification recommendation:
- Window 10 with 8 GB RAM
- 45 GB Free Storage
Syllabus
|
|
Trainer Profile
![]() |
Nama : Azman bin Zakaria
|
|
Azman merupakan senior programmer yang passionate dalam bidang pengaturcaraan komputer dari awal mulai beliau bekerja pada tahun 2000 sehingga hari ini. Beliau mempunyai pengalaman bekerja yang luas di agensi kerajaan, swasta dan sebagai freelancer.
|
|
Notes
<?php
namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
use PHPUnit\Framework\Constraint\Constraint;
class CreateAuditTrailTable extends Migration {
// run migrate
public function up()
{
$this->forge->addField('id');
$this->forge->addField([
'created_at'=> ['type' => 'datetime'],
'user_name' => ['type' => 'varchar', 'constraint' => 50],
'url' => ['type' => 'varchar', 'constraint' => 100],
'data' => ['type' => 'text'],
'ip' => ['type' => 'varchar', 'constraint' => 15],
'prev_page' => ['type' => 'varchar', 'constraint' => 100],
'agent' => ['type' => 'varchar', 'constraint' => 100],
'method' => ['type' => 'varchar', 'constraint' => 10],
]);
$this->forge->createTable('audit_trail', true);
}
// run rollback
public function down()
{
$this->forge->dropTable('audit_trail');
}
}
CREATE TABLE `audit_trail` (
`id` int(9) NOT NULL AUTO_INCREMENT,
`created_at` datetime NOT NULL,
`user_name` varchar(50) NOT NULL,
`url` varchar(100) NOT NULL,
`data` text NOT NULL,
`ip` varchar(15) NOT NULL,
`prev_page` varchar(100) NOT NULL,
`agent` varchar(100) NOT NULL,
`method` varchar(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
SELECT *
FROM film f, film_actor fa, actor a
WHERE fa.film_id = f.film_id
AND a.actor_id = fa.actor_id
AND f.film_id = 1;
Borang Penilaian Keberkesanan Latihan
Training evaluation ยท CodeIgniter 4 Training for KDN
Log in with the account you registered for this training to fill in the survey.
Log in to fill in the surveyAttendance
Students (7)
| # | Name |
|---|---|
| 1. | MOHD AMIRUDIN BIN A WAHAB |
| 2. | M YUSLIZAM BIN MAT JUSOH |
| 3. | Sharifah Noor Shatila binti Syed Othman |
| 4. | Muhammad Syakir Bin Muhamad Farid |
| 5. | Janarthanam A/L Aanandan |
| 6. | Nur Azri Bin Zakaria |
| 7. | Tun Zazarina binti Zainal Abidin |
