Skip to main content

Application::setSiteinfo

Set website information (ex. title, description, keywords)

Description

public void Application::setSiteinfo( string $id, string $value )

Set website information (ex. title, description, keywords). Assigned values will be stored in $site variable that you can use in template.

Arguments

NameData typeDefaultRemarks
$idstringKey
$valuestringValue

Example

Controller
$this->setSiteinfo( 'title', 'Site Title' );
Template
<title>{{ $site.title }}</title>
Output
<title>Site Title</title>