ContentViewInterface
in
Interface ContentViewInterface
Tags
Table of Contents
- set_content_data() : void
- Inject the content data to the template file that they are accessible in template with variables.
- set_content_template() : void
- Sets the content template file.
- set_template_dir() : void
- Sets the template directory path.
Methods
set_content_data()
Inject the content data to the template file that they are accessible in template with variables.
public
set_content_data(string $key, mixed $value) : void
Parameters
- $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.
Return values
void —set_content_template()
Sets the content template file.
public
set_content_template( $templateFile) : void
Parameters
Return values
void —set_template_dir()
Sets the template directory path.
public
set_template_dir(string $templateDirectoryPath) : void
Parameters
- $templateDirectoryPath : string
-
Absolute path to the template directory.