This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container-fluid"> | |
<form action="<?= base_url('update_tugas/' . $tugas['task_id']) ?>" method="post"> | |
<?= csrf_field() ?> | |
<input type="hidden" name="task_id" value="<?= $tugas['task_id'] ?>"> | |
<div class="form-group"> | |
<label for="task_name">Nama Tugas</label> | |
<input type="text" class="form-control" id="task_name" name="task_name" value="<?= esc($tugas['task_name']) ?>" required> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use CodeIgniter\Router\RouteCollection; | |
/** | |
* @var RouteCollection $routes | |
*/ | |
$routes->get('/', 'Home::index'); | |
$routes->get('tambah', 'Home::tambah'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Controllers; | |
use App\Models\TugasModel; | |
class Home extends BaseController | |
{ | |
public function index() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LAB 1= rpLr3born1 | |
LAB 2= rpLr3born2 | |
LAB 3= rpLr3born3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container-fluid"> | |
<form action="<?= base_url('tambah_tugas') ?>" method="post"> | |
<?= csrf_field() ?> | |
<div class="form-group"> | |
<label for="name">Nama Tugas</label> | |
<input type="text" name=" name" id="name" class="form-control" required> | |
</div> | |
<div class="form-group"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Buatlah nama file sama | |
<?php | |
namespace App\Models; | |
use CodeIgniter\Model; | |
class TugasModel extends Model | |
{ | |
protected $table = 'tb_clist'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Extract folder template. | |
2. Masukkan folder template ke dalam xampp/htdocs | |
3. Lalu rename folder template menjadi todo-list | |
4. Buka folder todo-list di vscode. | |
5. Buka Xampp lalu buka config di bagian apache lalu klik php.ini kemudian search : | |
a. ;extension=intl | |
b. ;extension = mbstring | |
Lalu hapus ; pada keduanya. | |
Lalu tekan Ctrl + S | |
Agar extension intl dan mbstring bisa di gunakan |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- phpMyAdmin SQL Dump | |
-- version 5.2.1 | |
-- https://www.phpmyadmin.net/ | |
-- | |
-- Host: 127.0.0.1 | |
-- Generation Time: Sep 11, 2025 at 10:09 AM | |
-- Server version: 10.4.32-MariaDB | |
-- PHP Version: 8.2.12 | |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- File Untuk Tampilan --> | |
<div class="container-fluid"> | |
<h1>Daftar Tugas</h1> | |
<?php if (session()->getFlashdata('success')) : ?> | |
<div class="alert alert-success alert-dismissable fade show" role="alert"> | |
<?= session()->getflashdata('success') ?> | |
<button type="button" class="close" data-dismiss="alert" aria-label="Close"> | |
<span aria-hidden="true">×</span> |