View

Warning: Require JATE 0.5.4 or higher.

Upload a file from /bundles/views/ and after a parsing returns a string.

void view( String $_path, Array $_parameters )

Parameters

  • $_path: The path of the file you want to open.
  • $_parameters: Is an array of content for pug and twig stuff.

Return Values

Return a string of html.

Examples

<?php
$temp = view("file1.twig", ["name" => "foo"]); // string with some html
?>