page()
Returns a page.
Table of Contents
Description
page(...$lot): Page;
This function returns a Page
class instance.
Example
$page = page('.\lot\page\about.page');
Function names are case-insensitive in PHP so you can use capitalization to make it to look like a direct instance of the Page
class.
// Using method `Page::__construct()`
$page = new Page('.\lot\page\about.page');
// Using method `Page::from()`
$page = Page::from('.\lot\page\about.page');
// Using function `page()`
$page = Page('.\lot\page\about.page');