_render()
_render(string $viewFile, array $data = array()) : string
Renders and returns output for given view filename with its array of data. Handles parent/extended views.
Parameters
string | $viewFile | Filename of the view |
array | $data | Data to include in rendered view. If empty the current View::$viewVars will be used. |
Throws
- \CakeException
when a block is left open.
Returns
string —Rendered output