SproutCMS

This is the code documentation for the SproutCMS project

function displayPage()

Called by the two display functions.
Does the actual display.

Usage

string $PageController->displayPage ( array $page [, string $approval_code ] );

Arguments

  1. array $page
    Combined page/revision record from the DB;
           see e.g. PageController::viewById or PageController::viewSpecificRev
  2. string $approval_code = ''
    Approval code, if the page needs to include 'approve' and 'deny' buttons
           for the revision being viewed

Return value

  • string
    HTML