Blocks
Block Structure
ROOT
├── application/ # Application-specific files
│ ├── Blocks/ # UI blocks (footer, header, content)
│ │ ├── Footer/ # Footer block
│ │ ├── Head/ # Head block (meta, CSS, JS)
│ │ ├── Header/ # Header block (nav, logo)
│ │ └── Content/ # Content block
│ │ ├── Views/ # Content layouts
│ │ │ ├── layout_1.php # Layout 1
│ │ │ ├── layout_2.php # Layout 2
│ │ │ └── layout_3.php # Layout 3
│ │ └── ContentBlock.php # Content block logic
│ └── 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)
│ │ ├── menu.php # Menu component
│ │ └── search.php # Search component
│ └── home_index.php # Homepage view
└── system/ # Core framework files
├── Core/ # Core classes for block handling
│ └── BaseBlock.php # Base class for blocks
└── Libraries/ # Helper libraries (rendering, etc.)
└── Render.php # Class for rendering views Create Structure
Call Blocks
Process
Display data
Last updated
Was this helpful?