Function __global->request_page

Definitions

sources/site.php

  • Take the specified parameters, and try to find the corresponding page, then execute a function to load the page (load_html_page/load_comcode_page).
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: object

Parameters

Name Type Default Set Range Description
$codename ID_TEXT required parameter N/A N/A The codename of the page to load
$required boolean required parameter N/A N/A Whether it is required for this page to exist (shows an error if it doesn't) -- otherwise, it will just return null
$zone ?ID_TEXT Null N/A N/A The zone the page is being loaded in (null: as shown by access URL)
$page_type ?ID_TEXT Null N/A N/A The type of page - for if you know it (null: don't know it)
$being_included boolean False N/A N/A Whether the page is being included from another
$redirect_check boolean True N/A N/A Whether to check for redirects (normally you would)
$page_missing boolean False N/A N/A Whether the page is missing (returned by reference)

Return

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