render() public method
Generates code using the specified code template and parameters. Note that the code template will be used as a PHP file.
public string render ( $template, $params = [] )$template string
The code template file. This must be specified as a file path relative to $templatePath. $params array
List of parameters to be passed to the template file. return string
The generated code