Welcome to CodeIgniter! If you already know some basic PHP and are ready to stop rewriting the same boilerplate code for every project, you’re in the right place. CodeIgniter is fantastic because it’s lightweight, fast, and doesn’t get in your way with mountains of configuration.
Here is our structured, 15-day crash course designed to take a beginner from “What is MVC?” to building and deploying a functional web application.
Phase 1: The Fundamentals (Days 1–5)
Day 1: Introduction & Installation
-
Concepts: What is a framework? Introduction to the Model-View-Controller (MVC) architecture.
-
Practical: * Installing Composer and setting up CodeIgniter 4.
-
Configuring the
.envfile (Development mode, Base URL). -
Running the local development server (
php spark serve).
-
Day 2: Routing & Controllers
-
Concepts: How HTTP requests are handled. Understanding the URL structure.
-
Practical: * Creating your first Controller.
-
Defining custom routes in
Config/Routes.php. -
Passing parameters from the URL into Controller methods.
-
Day 3: Views & Layouts
-
Concepts: Separating presentation from business logic.
-
Practical: * Creating Views and loading them from a Controller.
-
Passing data from Controllers to Views.
-
Using View Layouts (Master templates) to avoid repeating headers and footers.
-
Day 4: Working with Static Assets & CodeIgniter “Spark”
-
Concepts: Managing CSS, JavaScript, and images. Introduction to the CLI tool.
-
Practical: * Linking public assets using the
base_url()helper.-
Exploring useful
php sparkcommands (generating controllers, views, models).
-
Day 5: Weekly Review & Mini-Project I
-
Practical: Build a Static Portfolio Website.
-
Create a multi-page site (Home, About, Contact).
-
Use a unified layout template.
-
Practice passing dynamic page titles and active menu states through routes.
-
Phase 2: Database & Data Dynamics (Days 6–10)
Day 6: Database Setup & Migrations
-
Concepts: Database abstraction and version control for your database schema.
-
Practical: * Configuring MySQL in the
.envfile.-
Creating and running Database Migrations via Spark.
-
Understanding Database Seeders for dummy data.
-
Day 7: Models & The Query Builder
-
Concepts: Interacting with the database safely without writing raw SQL.
-
Practical: * Creating a CodeIgniter Model.
-
Using the Query Builder for CRUD operations (Create, Read, Update, Delete).
-
Fetching data and displaying it in a View.
-
Day 8: Form Handling & Validation
-
Concepts: Trusting user input is a security risk. Implementing strict validation.
-
Practical: * Creating HTML forms using the Form Helper.
-
Setting up validation rules (required, matches, valid_email, etc.).
-
Displaying inline validation errors to the user.
-
Day 9: The CodeIgniter Session & Flash Data
-
Concepts: Maintaining user state across page loads.
-
Practical: * Enabling and using the Session library.
-
Setting, reading, and destroying session data.
-
Using “Flashdata” for temporary notifications (e.g., “Record saved successfully!”).
-
Day 10: Weekly Review & Mini-Project II
-
Practical: Build a Simple Guestbook Application.
-
Users can view a list of messages.
-
A form allows users to submit a new message (validated!).
-
Store messages in a database and show success/error alerts using flashdata.
-
Phase 3: Advanced Concepts & Real-World Application (Days 11–15)
Day 11: Authentication & Security (Deep Dive)
-
Concepts: Protecting routes and managing user access. Preventing common web vulnerabilities.
-
Practical: * Building a basic Login and Registration system.
-
Password hashing using PHP’s
password_hash(). -
Enabling CSRF (Cross-Site Request Forgery) protection in CodeIgniter.
-
Day 12: Controller Filters (Middleware)
-
Concepts: Intercepting HTTP requests before or after they hit a controller.
-
Practical: * Creating an
AuthFilterto protect specific pages.-
Redirecting unauthenticated users back to the login page automatically.
-
Applying filters globally vs. to specific routes.
-
Day 13: Introduction to API Development
-
Concepts: Serving JSON data instead of HTML views (building a REST API backend).
-
Practical: * Using CodeIgniter’s built-in
ResourceController.-
Responding with
respond()and handling JSON outputs. -
Testing endpoints using tools like Postman.
-
Day 14: File Uploads & Pagination
-
Concepts: Handling media assets and breaking down massive database results.
-
Practical: * Creating a secure file/image upload form.
-
Moving and renaming uploaded files safely.
-
Using CodeIgniter’s Pagination service to split data across multiple pages.
-
Day 15: Capstone Project & Deployment
-
Practical: Tie everything together by building a Task Management System (To-Do List).
-
Features: User authentication, full CRUD for tasks, task categories, pagination, and file attachments.
-
Final Step: Discussion on preparing CodeIgniter for production (turning off debug mode, updating base URLs).
-
Total Fees: 60,000/=
Total Duration: 30 Hrs (2 hours x 15 Classes)
Training Mode: Individual Training, your own timetable
Live Online Classes or Face to Face Direct Classes with our expert trainers.
Call +94 (0) 722000999 / +94 (0) 755123111 www.iss.lk. Medium : සිංහල / தமிழ் / English