Views & Templates
Views Structure
ROOT
├── application/ # Application-specific files
│ └── Views/ # Views for frontend and backend
│ ├── Backend/ # Backend views
│ ├── Frontend/ # Frontend views (assets, components)
│ │ ├── Assets/ # Frontend assets (CSS, JS)
│ │ │ ├── css/ # CSS files
│ │ │ └── js/ # JS files
│ │ ├── Component/ # Reusable components (e.g., menu, search)
│ │ │ ├── header.php # Header component
│ │ │ ├── footer.php # Footer component
│ │ │ └── sidebar_main.php # Sidebar main component
│ │ └── home_index.php # Homepage view
│ ├── backend.php # Backend layout
│ ├── frontend.php # Frontend layout
│ ├── dashboard.php # Dashboard layout
│ └── 404.php # Error layout
Creating a View
Using manual way
Setup Controller
Get data in view
Using Blocks
When to use Manual or Blocks?
Manual
Blocks
Error Pages
Last updated
Was this helpful?