<?php

require __DIR__ . '/../config/config_default.php';
require __DIR__ . '/SitemapGen.php';
$gen = new SitemapGen();
$gen->addPage($siteAddress);
foreach ($pages as $page => $updateFrequency) {
    $gen->addPage($siteAddress . $page, $updateFrequency);
}
$gen->write(__DIR__ . '/../public/sitemap.xml');
Example #2
0
 public function action_build()
 {
     SitemapGen::build();
 }