Page::route()

Returns the page’s relative path.

Table of Contents
  1. Description
  2. Example

Description

Page::route(): ?string;

This method returns the page’s path relative to the .\lot\page folder, without the file extension.

Example

$page = new Page('.\lot\page\article\lorem-ipsum.page');

echo $page->route(); // Returns `'/article/lorem-ipsum'`

Page::route()

Returns the page’s relative path.

Page::size()

Gets the file sizes in human readable string format.