class CI_Parser
-
parse($template, $data[, $return = FALSE])
-
Parameters: - $template (string) – Path to view file
- $data (array) – Variable data
- $return (bool) – Whether to only return the parsed template
Returns: Parsed template string
Return type: string
Parses a template from the provided path and variables.
-
parse_string($template, $data[, $return = FALSE])
-
Parameters: - $template (string) – Path to view file
- $data (array) – Variable data
- $return (bool) – Whether to only return the parsed template
Returns: Parsed template string
Return type: string
This method works exactly like
parse()
, only it accepts the template as a string instead of loading a view file.
-
set_delimiters([$l = '{'[, $r = '}']])
-
Parameters: - $l (string) – Left delimiter
- $r (string) – Right delimiter
Return type: void
Sets the delimiters (opening and closing) for a pseudo-variable “tag” in a template.
Please login to continue.