2017 © Pedro Peláez
 

yii-extension yii-seo

Search engine optimization for the Yii PHP framework.

image

chemezov/yii-seo

Search engine optimization for the Yii PHP framework.

  • Wednesday, August 19, 2015
  • by chemezov
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3,131 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 11 Forks
  • 0 Open issues
  • 6 Versions
  • 1 % Grown

The README.md

yii-seo

Search engine optimization for the Yii PHP framework., (*1)

Based on crisu83's yii-seo., (*2)

Usage

In layout, (*3)

    <?php Yii::app()->controller->widget(
        'vendor.chemezov.yii-seo.widgets.SeoHead',
        array(
            'httpEquivs'         => array(
                'Content-Type'     => 'text/html; charset=utf-8',
                'X-UA-Compatible'  => 'IE=edge,chrome=1',
                'Content-Language' => 'en-EN'
            ),
            'defaultTitle'       => "My default title",
            'defaultDescription' => "My default description",
            'defaultKeywords'    => "My default keywords",
        )
    ); ?>

In Controller, (*4)

    public function behaviors()
    {
        return array(
            'seo' => array('class' => 'vendor.chemezov.yii-seo.behaviors.SeoBehavior'),
        );
    }

    public function filters()
    {
        return array(
            array('vendor.chemezov.yii-seo.filters.SeoFilter + view'), // apply the filter to the view-action
        );
    }

In view file, (*5)


$this->title = [$model->title, "My cool site!"]; $this->metaDescription = "My page description"; $this->metaKeywords = "My page keywords";

The Versions

19/08 2015

dev-master

9999999-dev https://github.com/chemezov/yii-seo

Search engine optimization for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

yii seo

19/08 2015

v1.0.4

1.0.4.0 https://github.com/chemezov/yii-seo

Search engine optimization for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

yii seo

08/04 2015

v1.0.3

1.0.3.0 https://github.com/chemezov/yii-seo

Search engine optimization for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

yii seo

04/04 2015

v1.0.2

1.0.2.0 https://github.com/chemezov/yii-seo

Search engine optimization for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

yii seo

22/03 2015

v1.0.1

1.0.1.0 https://github.com/chemezov/yii-seo

Search engine optimization for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

yii seo

20/03 2015

v1.0.0

1.0.0.0 https://github.com/chemezov/yii-seo

Search engine optimization for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

yii seo