jBlockFileMan

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

void jBlockFile( String $_path, String $_type, Array $_parameters )

Parameters

  • $_path: The path of the file you want to open.
  • $_type: The type of the file contents, could be html, pug, jade, twig, md.
  • $_parameters: Is an array of content for pug and twig stuff.

Return Values

Return a string.

Examples

<?php
$temp = jBlockFileMan("bundles/views/file1.txt", "md"); // string with some markdown
?>