Function __global->load_html_page

Definitions

sources/site_html_pages.php

  • Get the contents of an HTML page.HTML isn't great... no dynamicness/reconfigurability at all.We prefer Comcode with [html]HTML goes here[/html] usage.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$string PATH No No required parameter N/A N/A The relative (to the software's base directory) path to the HTML page
$file_base ?PATH No No Null N/A N/A The file base to load from (null: standard)

Returns

  • The page
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get the contents of an HTML page.HTML isn't great... no dynamicness/reconfigurability at all.We prefer Comcode with [html]HTML goes here[/html] usage.
 *
 * @param  PATH $string The relative (to the software's base directory) path to the HTML page
 * @param  ?PATH $file_base The file base to load from (null: standard)
 * @return string The page
 */

function load_html_page(string $string, ?string $file_base = null) : string