Advertisement
Google Ad Slot: content-top
CI Views
What is a View?
A View in CodeIgniter is a PHP file that contains HTML and minimal PHP to display data to the user.
It’s part of the MVC architecture:
- Controller sends data
- View renders it as HTML
- Browser displays it
View File Structure
Views are stored in:
app/ └── Views/ └── controller-name/ └── file-name.php
Example: About Page View
View (app/Views/about/index.php)