Click here for EduSec Demo EduSec Screenshots

Yii SEO Extension

On 2013-06-10 - By Ravi Thanki

SEO is short for search engine optimization or search engine optimizer.

Search engine optimization is a methodology of strategies, techniques and tactics used to increase the amount of visitors to a website  by obtaining a high-ranking placement in the search results page of  search engine  including Google, Bing, Yahoo and other search engines.

Yii also provide good seo extension.

 

Implementation Step:

1. Download From Yii Website.
2. Create one folder module in protected directory.
3. unzip folder in module folder.
4. In protected/config/main.php

update urlmanager
‘urlManager’=>array(
‘urlFormat’=>’path’,
‘showScriptName’=>false,
),

5. Add folowing code to configuration files (protected/config/main.php)

‘modules’=>array(
….
‘yiiseo’=>array(
‘class’=>’application.modules.yiiseo.YiiseoModule’,
‘password’=>’111′, // your default password is 111
),
),

‘components’=>array(
….
‘seo’=>array(
‘class’ => ‘application.modules.yiiseo.components.SeoExt’,
),
),

‘import’=>array(
….
‘application.modules.yiiseo.models.*’,
),

6. Run following line of code that suits you into your main layouts head :

`Yii::app()->seo->run();` or `Yii::app()->seo->run(Yii::app()->language);`

7. Run module like gii.