Example #1
0
 protected function afterRender($view, &$output)
 {
     parent::afterRender($view, $output);
     //Yii::app()->facebook->addJsCallback($js); // use this if you are registering any $js code you want to run asyc
     Yii::app()->facebook->initJs($output);
     // this initializes the Facebook JS SDK on all pages
     Yii::app()->facebook->renderOGMetaTags();
     // this renders the OG tags
     return true;
 }
Example #2
0
 /**
  * We use clips for some layouts. Reset them after each page.
  */
 public function afterRender($view, &$output)
 {
     $this->clips->clear();
     parent::afterRender($view, $output);
 }
 function afterRender()
 {
     parent::afterRender();
 }
Example #4
0
 protected function afterRender($view, $output)
 {
     print "После рендера - нет русского";
     return parent::afterRender($view, $output);
 }
Example #5
0
 protected function afterRender($view, &$output)
 {
     parent::afterRender($view, $output);
     Yii::app()->facebook->initJs($output);
     // this initializes the Facebook JS SDK on all pages
     Yii::app()->facebook->renderOGMetaTags();
     // this renders the OG tags
     return true;
 }