2017 © Pedro Peláez
 

yii2-extension sitemap

Sitemap module for Easyii2CMS

image

grozzzny/sitemap

Sitemap module for Easyii2CMS

  • Wednesday, June 6, 2018
  • by grozzzny
  • Repository
  • 1 Watchers
  • 0 Stars
  • 47 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 176 % Grown

The README.md

Sitemap module for easyii2cms

Installation guide

$ php composer.phar require grozzzny/sitemap "dev-master"

Run migrations, (*1)

php yii migrate --migrationPath=@vendor/grozzzny/sitemap/migrations

Add console config, (*2)

  'aliases' => [
        '@webroot' => '@app/web',
  ],
  'modules' => [
        'sitemap' => [
            'class' => 'grozzzny\sitemap\Module',
            'domain' => 'https://my-site',
            'generatedByLink' => 'http://pr-kenig.ru',
            'generatedByName' => 'PRkenig',
            'controllerMap' => [
                'console' => 'app\commands\SitemapController'
            ]
        ]
    ],

CRON, (*3)

php yii sitemap/console/update

or After save model:, (*4)

    public function afterSave($insert, $changedAttributes)
    {
        parent::afterSave($insert, $changedAttributes); // TODO: Change the autogenerated stub
        WebConsole::console()->runAction('sitemap/console/update');
    }

The Versions

06/06 2018

dev-master

9999999-dev

Sitemap module for Easyii2CMS

  Sources   Download

MIT

The Requires

 

module cms yii easyii2cms