gii\Generator render()

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

doc_Yii
2016-10-30 17:03:06
Comments
Leave a Comment

Please login to continue.