Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spanjeta/yii2-seo
SEO Management functionality module extention for Yii2.
https://github.com/spanjeta/yii2-seo
Last synced: about 2 months ago
JSON representation
SEO Management functionality module extention for Yii2.
- Host: GitHub
- URL: https://github.com/spanjeta/yii2-seo
- Owner: spanjeta
- Created: 2016-07-04T11:06:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-04T18:29:04.000Z (over 8 years ago)
- Last Synced: 2024-10-13T15:22:45.537Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Seo Manager
===========
Seo Manager for every SiteInstallation
------------The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require --prefer-dist spanjeta/yii2-seo "*"
```or add
```
"spanjeta/yii2-seo": "*"
```to the require section of your `composer.json` file.
###Migration
Run the following command in Terminal for database migration:
Linux/Unix:
```
yii migrate/up --migrationPath=@vendor/spanjeta/yii2-seo/migrations
```Windows:
```
yii.bat migrate/up --migrationPath=@vendor/spanjeta/yii2-seo/migrations
```Usage
-----```
Add to modules
```php
'modules' => [
'seomanager' => [
'class' => 'spanjeta\modules\seomanager\Module',
],
]
```Pretty Url's ```/seomanager```
No pretty Url's ```index.php?r=seomanager```
### content
To get content to every page you can use in the seomanger the content field.
To print out the content you must you this in your view.```php
getModule('seomanager');
$conten = $module->getContent();if ($conten !== null): ?>
= $conten; ?>
```