<?xml version='1.0'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom" >
<channel>
	<title><![CDATA[Catatan Harian: Codeigniter Ci4}]]></title>
	<link>https://sharka.site/3blog/pages/view/60/codeigniter-ci4</link>
	<atom:link href="https://sharka.site/3blog/pages/view/60/codeigniter-ci4" rel="self" type="application/rss+xml" />
	<description><![CDATA[}]]></description>
		<item>
	<guid isPermaLink="true">https://sharka.site/3blog/pages/view/60/codeigniter-ci4</guid>
	<pubDate>Wed, 22 Oct 2025 17:07:09 +0800</pubDate>
	<link>https://sharka.site/3blog/pages/view/60/codeigniter-ci4</link>
	<title><![CDATA[Codeigniter Ci4]]></title>
	<description><![CDATA[<div style="color:#222;font-family:'Poppins', 'Segoe UI', Roboto, system-ui, sans-serif;line-height:1.7;margin:0 auto;max-width:900px;"><div style="background-color:#f1f5ff;border-radius:12px;box-shadow:0 6px 18px rgba(2,62,138,0.06);color:#023e8a;padding:24px 20px;text-align:center;"><h2 style="font-size:20px;margin:0;">🚀 <strong>Pendahuluan CodeIgniter 4 (CI4)</strong></h2><p style="color:#014f86;font-size:14px;margin:8px 0 0;">Framework PHP modern untuk pengembangan aplikasi web cepat, ringan, dan aman.</p></div><div style="font-size:15px;margin-top:20px;"><p><strong>CodeIgniter 4 (CI4)</strong> adalah framework <i>open-source</i> berbasis PHP yang membantu developer membuat aplikasi web dengan cepat dan terstruktur. CI4 menghadirkan peningkatan performa, keamanan, dan arsitektur yang mengikuti praktik pengembangan modern.</p><h3 style="color:#023e8a;margin-top:18px;">💡 Mengapa memilih CodeIgniter 4?</h3><ul style="margin-bottom:0;margin-right:0;margin-top:8px;"><li><p style="margin-left:18px;"><strong>Ringan &amp; Cepat:</strong> footprint kecil, eksekusi cepat.</p></li><li><p style="margin-left:18px;"><strong>Arsitektur MVC:</strong> pemisahan antara Model, View, Controller untuk kode yang rapi.</p></li><li><p style="margin-left:18px;"><strong>Fitur Keamanan:</strong> CSRF protection, XSS filtering, input validation bawaan.</p></li><li><p style="margin-left:18px;"><strong>Composer-ready:</strong> memudahkan integrasi paket pihak ketiga.</p></li><li><p style="margin-left:18px;"><strong>Mudah Dikustom:</strong> konfigurasi sederhana dan fleksibel untuk produksi.</p></li></ul><h3 style="color:#023e8a;margin-top:18px;">⚙️ Struktur Direktori Utama</h3><div style="background-color:#fff;border-radius:10px;border:1px solid #eef2ff;padding:12px;"><pre style="font-size:13px;margin:0;white-space:pre-wrap;">/app
/system
/public
/writable</pre><p style="color:#333;font-size:13px;margin:8px 0 0;"><strong>/app</strong> — logic aplikasi (controller, model, view).<br /><strong>/system</strong> — inti framework (jangan ubah kecuali tahu resikonya).<br /><strong>/public</strong> — entry point web (index.php, aset).<br /><strong>/writable</strong> — cache, logs, upload; harus dapat ditulis.</p></div><h3 style="color:#023e8a;margin-top:18px;">🧭 Alur Kerja Singkat (MVC)</h3><p style="margin:0 0 12px;">CI4 menggunakan pola <strong>Model-View-Controller</strong>:</p><ol><li><p style="margin-left:18px;"><strong>Model:</strong> mengelola data dan query ke database.</p></li><li><p style="margin-left:18px;"><strong>Controller:</strong> mengatur alur, validasi, dan pemanggilan model/view.</p></li><li><p style="margin-left:18px;"><strong>View:</strong> berisi tampilan HTML untuk user.</p></li></ol><h3 style="color:#023e8a;margin-top:18px;">📌 Contoh singkat Controller</h3><div style="background-color:#0f172a0a;border-radius:8px;border:1px solid #eef2ff;padding:12px;"><pre style="font-size:13px;margin:0;white-space:pre-wrap;">&lt;?php
namespace App\Controllers;

use App\Models\UserModel;

class Home extends BaseController
{
    public function index()
    {
        $model = new UserModel();
        $data['users'] = $model-&gt;findAll();
        return view('home', $data);
    }
}
      </pre></div><h3 style="color:#023e8a;margin-top:18px;">📝 Tips &amp; Catatan</h3><div style="display:flex;flex-wrap:wrap;gap:12px;margin-top:8px;"><div style="background-color:#fff8e6;border-left:4px solid #ffb703;border-radius:8px;flex:1;min-width:220px;padding:12px;"><p><strong>Tip:</strong></p><p style="font-size:13px;margin:6px 0 0;">Selalu gunakan fitur Validasi dan Escape output untuk mencegah XSS dan injeksi.</p></div><div style="background-color:#eefaf6;border-left:4px solid #2b9348;border-radius:8px;flex:1;min-width:220px;padding:12px;"><p><strong>Catatan:</strong></p><p style="font-size:13px;margin:6px 0 0;">Letakkan folder <i>writable</i> dan data sensitif di luar public webroot bila memungkinkan.</p></div></div><h3 style="color:#023e8a;margin-top:18px;">📚 Rekomendasi Selanjutnya</h3><ul style="margin-bottom:18px;margin-right:0;margin-top:8px;"><li><p style="margin-left:18px;">Pelajari routing CI4, Request/Response, dan fitur Session.</p></li><li><p style="margin-left:18px;">Gunakan Migration &amp; Seeder untuk manajemen database.</p></li><li><p style="margin-left:18px;">Terapkan environment config (ENV) untuk pengaturan development vs production.</p></li></ul><div style="border-radius:10px;border:1px solid #e6eefc;padding:14px;"><p><strong style="color:#023e8a;">Kesimpulan</strong></p><p style="color:#333;font-size:14px;margin:8px 0 0;">CodeIgniter 4 adalah pilihan tepat bila Anda membutuhkan framework PHP yang cepat, terstruktur, dan mudah diadaptasi. Cocok untuk pemula hingga proyek skala menengah yang mengutamakan kesederhanaan dan performa.</p></div></div></div>]]></description>
	<dc:creator>Muh.Taqiuddin.S</dc:creator>		</item>
</channel>
</rss>
