dev-master
9999999-devA full SEO manament system for Yii2.
MIT
The Requires
by Josh Hagel
extension yii2 search engine seo optimization
A full SEO manament system for Yii2.
A full SEO manament system for Yii2., (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist linchpinstudios/yii2-seo "*"
or add, (*4)
"linchpinstudios/yii2-seo": "*"
to the require section of your composer.json
file., (*5)
For Blog, (*6)
./yii migrate/up --migrationPath=@vendor/linchpinstudios/yii2-seo/migrations
Setup beforeAction in controllers you want to use SEO, (*7)
public function beforeAction($action)
{
if (parent::beforeAction($action)) {
$seoMetaTags = New \linchpinstudios\seo\models\Seo;
$seoMetaTags->run();
return true; // or false if needed
} else {
return false;
}
}
, (*8)
To access the module, you need to add this to your application configuration:, (*9)
<?php
......
'modules' => [
'seo' => [
'class' => 'linchpinstudios\seo\Module',
],
],
......
, (*10)
A full SEO manament system for Yii2.
MIT
extension yii2 search engine seo optimization