/**
  * What to do before rendering the view file.
  *
  * We include Google Analytics code if ID was specified and register the frontend assets.
  *
  * @param string $view
  * @return bool
  */
 public function beforeRender($view)
 {
     $result = parent::beforeRender($view);
     $this->addGoogleAnalyticsCode();
     $this->registerAssets();
     return $result;
 }
 /**
  * Before rendering anything we register all of CSS and JS assets we require for backend UI.
  *
  * @see CController::beforeRender()
  *
  * @param string $view
  * @return bool
  */
 protected function beforeRender($view)
 {
     $result = parent::beforeRender($view);
     $this->registerAssets();
     return $result;
 }