Example #1
0
 public function sitemap()
 {
     if ($_POST) {
         Sitemap::save();
         $this->redirect('/tools/sitemap/');
     } else {
         View::render('tools/sitemap/list', array('list' => Sitemap::getList()));
     }
 }