jBlockFile

Upload a file from a specific path ($_path) and after a parsing returns a string.

void jBlockFile( 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 = jBlockFile("bundles/views/file1.twig", ["name" => "foo"]); // string with some html
?>