Skip to content
This repository was archived by the owner on Jun 26, 2021. It is now read-only.
This repository was archived by the owner on Jun 26, 2021. It is now read-only.

Core - move all $PAGE_XXX settings to $pmtPage["..."] #2

Description

@DevChive

By using $pmtPage[] array, this will help reduce the use of the keyword global throughout the code and be able to manage the page generating code throughout the core.

This will replace the following:
global $PAGE_PATH; // "http://pmt/xpmt/themes/default/"
global $PAGE_TITLE; // Page title
global $PAGE_CSS; // todo: Add to global var list
global $PAGE_CUSTHEADER;// Custom Header for module
global $PAGE_METABAR; // Login & Search bar (right aligned)
global $PAGE_TOOLBAR; // Main toolbar
global $PAGE_MINILEFT; // Mini toolbar (Left aligned)
global $PAGE_MINIRIGHT; // Mini toolbar (Right aligned)
global $PAGE_HTDATA; // Page content

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions