/**
*
*/
public function actionIndex()
{
$module = Yii::app()->getModule('sitemap');
$sitemapFile = $module->getSiteMapPath();
if (!file_exists($sitemapFile)) {
$staticPages = SitemapPage::model()->getData();
$this->generator->generate($sitemapFile, $staticPages);
}
$this->redirect(['/sitemap/sitemap/index'], 301);
}