CodeIgniter Basic Tutorial
Performance & Utilities
CodeIgniter Advanced
CodeIgniter is a lightweight PHP framework that follows the MVC (Model–View–Controller) architectural pattern.
It helps you organize your application code by separating:
When you install CodeIgniter 4, your main app code lives in app/
directory:
app/ ├── Controllers/ ├── Models/ ├── Views/
app/Models/ProductModel.php
Purpose: Fetches product data from the database.
app/Controllers/Product.php
Purpose: Loads product data from ProductModel
and passes it to the view.
app/Views/products_list.php
Purpose: Displays the product list.
app/Config/Routes.php
$routes->get('products', 'Product::index');
Browser → Controller → Model → Controller → View → Browser