currentPage (function)

Last updated: Tue, Jan 3, 2023 11:15 am
Return to Knowledgebase

Purpose

Returns the file name of the current page (not including path)

Location

users/helpers/helpers.php

Version Information

First Introduced v2.5.0

See Also:

currentFolder (function)

Parameters

This function does not take any arguments

Returns

Data Type Description of Returned Data
string Returns a the name of the current php file.

Example

echo currentPage();

Further Documentation:

Note: Most of the time this has already been called in a header and you can simply reference the $currentPage variable to get the page name.