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
Name | Data type | Default | Remarks |
---|---|---|---|
$id | string | Key | |
$value | string | Value |
Example
Controller
$this->setSiteinfo( 'title', 'Site Title' );
Template
<title>{{ $site.title }}</title>
Output
<title>Site Title</title>