Portal
extends Controller
in package
Portal Controller
This controller handles the main portal page.
Table of Contents
Methods
- index() : mixed
- Index method
- layout() : void
- Render a layout with optional data.
- view() : void
- Render a view with optional data.
Methods
index()
Index method
public
index() : mixed
This method is the entry point for the portal page. It sets the user's session, loads the header and footer layouts, and displays the "Welcome" view.
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.