ContentViewInterface

Extends

Interface ContentViewInterface

category

System

package

Http

subpackage

Interfaces

Methods

Inject the content data to the template file that they are accessible in template with variables.

set_content_data(string $key, mixed $value) : void

Arguments

$key

string

Variable name in the template file.

$value

mixed

Value in the template which can get accessed by the $key inside the set template file.

Sets the content template file.

set_content_template( $templateFile) : void

Arguments

$templateFile

Sets the template directory path.

set_template_dir(string $templateDirectoryPath) : void

Arguments

$templateDirectoryPath

string

Absolute path to the template directory.