Repository navigation
Internals View Interfaces IView
Framework Internals · Subsystem overview · Developer guide
Source: awt_src/classes/view/interfaces/IView.php · Snapshot 8411f4287706.
A View stores the template name and bundle, initially includes the view file, then compiles the Blade template on render(). Controllers inherit this behavior.
use redirect\Redirect;
use view\View;interface IViewSource description (behavioral corrections are recorded in Known discrepancies):
Interface IView
Defines the contract for view classes. Classes implementing this interface should provide a method for handling the default view logic, the index action.
No own constants, enum cases, traits or property declarations. Inherited members are documented on the parent reference page.
| Method | Signature |
|---|---|
| index | public function index(): View|Redirect |
public function index(): View|Redirect;Handles the index action of the view.
This method should return an instance of the View class or a Redirect.
@return View|Redirect The View instance to be rendered or a Redirect instance to another location.
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
AWT Framework Wiki · Home · Installation Guide · Developer Guide · Framework Internals
Philosophy · Architecture · Known discrepancies · Verification
Installation Guide
Developer Guide
- Learning sequence
- First package
- Package structure
- Lifecycle
- Runtimes
- Events and objects
- Routing and controllers
- Views and resources
- Database and models
- Storage and caching
- Configuration and CLI
- Responses and errors
- Extension points
Framework Internals
- Architecture
- Bootstrap
- Packages
- Runtime
- Events and context
- Objects
- HTTP routing and controllers
- Rendering
- Blade integration
- Database
- Models
- Storage and caching
- Settings
- CLI
- Identity and sessions
- Responses
- Errors
- Complete source inventory
Documentation notes