index()

function index(): void

Description

Renders the (default) homepage for public access. This method loads the 'trongate_pages' module and calls its 'display()' method to render the homepage.

Parameters

Parameter Type Description Default Required
This method does not take any parameters.

Return Value

Type Description
void This method does not return any value.

Example #1

The code below shows the current implementation of the Welcome module's index method.

Example #2

The code sample below demonstrates how to render a simple, 'hello world' message when the application's (default) homepage is loaded.

Example #3

The code sample below demonstrates how a website template, with corresponding view file, could be rendered when the application's (default) homepage is loaded.