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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.