PHP code example of infoweb-internet-solutions / yii2-cms-seo
1. Go to this page and download the library: Download infoweb-internet-solutions/yii2-cms-seo library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
infoweb-internet-solutions / yii2-cms-seo example snippets
'modules' => [
...
'seo' => [
'class' => 'infoweb\seo\Module',
],
],
use infoweb\seo\behaviors\SeoBehavior;
public function behaviors()
{
return [
'seo' => [
'class' => SeoBehavior::className(),
'titleAttribute' => 'title',
],
];
}
// Initialize the tabs
$tabs = [
...
[
'label' => 'SEO',
'content' => $this->render('@infoweb/seo/views/behaviors/seo/_seo_tab', ['model' => $model, 'form' => $form]),
],
];