renderPhpFile() public method
Renders a view file as a PHP script.
This method treats the view file as a PHP script and includes the file. It extracts the given parameters and makes them available in the view file. The method captures the output of the included view file and returns it as a string.
This method should mainly be called by view renderer or renderFile().
public string renderPhpFile ( $_file_, $_params_ = [] ) | ||
---|---|---|
$_file_ | string |
The view file. |
$_params_ | array |
The parameters (name-value pairs) that will be extracted and made available in the view file. |
return | string |
The rendering result |
Please login to continue.