Lab
extends Controller
in package
The Lab Controller is used for experimenting and simulating various scenarios.
This controller can be used to test functionalities, such as sending emails and handling exceptions.
Table of Contents
Methods
- Index() : mixed
- Lab constructor.
- layout() : void
- Render a layout with optional data.
- view() : void
- Render a view with optional data.
Methods
Index()
Lab constructor.
public
Index() : mixed
This constructor initializes the Lab Controller.
layout()
Render a layout with optional data.
protected
layout(string $layoutName[, array<string|int, mixed> $data = [] ]) : void
Parameters
- $layoutName : string
-
The name of the layout view file to render.
- $data : array<string|int, mixed> = []
-
Optional data to pass to the layout.
view()
Render a view with optional data.
protected
view(string $viewName[, array<string|int, mixed> $data = [] ]) : void
Parameters
- $viewName : string
-
The name of the view file to render.
- $data : array<string|int, mixed> = []
-
Optional data to pass to the view.