Mecha CMS

Deep learning on using the API.

Pages

Bulk page instance from array.

2.2.0Files

$pages = new Pages([
    '.\path\to\file-1.page',
    '.\path\to\file-2.page',
    '.\path\to\file-3.page',
    '.\path\to\file-4.page',
]);

foreach ($pages as $page) {
    echo $page->title . '<br>';
}