Posted By

techstroke on 05/04/11


Tagged

php Yii


Versions (?)

Change Page Title and Meta Tags for SEO in Yii


 / Published in: PHP
 

URL: http://www.yiiframework.com/forum/index.php?/topic/6542-how-to-change-title-and-meta-tags-dynamically/

  1. public function actionMyAction()
  2. {
  3. $this->pageTitle = 'New Title';
  4.  
  5. Yii::app()->clientScript->registerMetaTag('foo, bar', 'keywords');
  6. }

Report this snippet  

You need to login to post a comment.