Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/julian-b90/yii2-seomanager
To optimized the Page
https://github.com/julian-b90/yii2-seomanager
extension seo seo-manager yii2
Last synced: about 2 months ago
JSON representation
To optimized the Page
- Host: GitHub
- URL: https://github.com/julian-b90/yii2-seomanager
- Owner: Julian-B90
- Archived: true
- Created: 2015-05-12T08:13:04.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-14T11:57:12.000Z (almost 2 years ago)
- Last Synced: 2024-09-24T20:46:28.689Z (about 2 months ago)
- Topics: extension, seo, seo-manager, yii2
- Language: PHP
- Size: 36.1 KB
- Stars: 6
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# This repo is archived
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 julian-b90/yii2-seomanager "*"
```or add
```
"julian-b90/yii2-seomanager": "*"
```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/julian-b90/yii2-seomanager/migrations
```Windows:
```
yii.bat migrate/up --migrationPath=@vendor/julian-b90/yii2-seomanager/migrations
```Usage
-----Overrite Controller
```php
use julianb90\seomanager\component\Controller;class SiteController extends Controller
{}
```Ad to modules
```php
'modules' => [
'seomanager' => [
'class' => 'julianb90\seomanager\Module',
],
]
```for example http://localhost.local/seomanager/seomanager/index.html
### 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; ?>
```