Function __global->get_template_contents
Definitions
sources/zones3.php
- Read the contents of a template file.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $name | string | No | No | required parameter | N/A | N/A | The name of the template (based on the filename) (blank: explicit no template) |
Returns
- The contents of the file (blank if it does not exist)
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Read the contents of a template file.
*
* @param string $name The name of the template (based on the filename) (blank: explicit no template)
* @return string The contents of the file (blank if it does not exist)
*/
function get_template_contents(string $name) : string
* Read the contents of a template file.
*
* @param string $name The name of the template (based on the filename) (blank: explicit no template)
* @return string The contents of the file (blank if it does not exist)
*/
function get_template_contents(string $name) : string
