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