CI_Parser

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.

doc_CodeIgniter
2016-10-15 16:31:50
Comments
Leave a Comment

Please login to continue.