riiitor/yii2-seo

Seo component for YII2

Installs: 39

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

v1.0.4 2017-08-09 10:27 UTC

This package is not auto-updated.

Last update: 2024-05-15 18:53:11 UTC


README

Install

create migration and apply it

yii migrate/create create_seo_table --fields=model_class:string:notNull,model_id:integer:notNull,title:string,keywords:string,description:string

add behavior to model

'seo' => [
    'class' => \riiitor\seo\behaviors\SeoBehavior::className(),
]

add widget to form

echo \riiitor\seo\widgets\SeoWidget::widget(['model' => $model]);

register meta

$model->registerSeo();