/**
  * Adds stylesheets and javascripts statements to the data.
  *
  * @param string $viewName The view name
  *
  * @return string The PHP statement
  */
 protected function addHtmlAsset($viewName = '')
 {
     // Disable for dev environment
     if (sfConfig::get('sf_debug') || sfConfig::get('sf_test')) {
         return parent::addHtmlAsset($viewName);
     }
     // Merge the current view's stylesheets with the app's default stylesheets
     $stylesheets = $this->mergeConfigValue('stylesheets', $viewName);
     // clean stylesheet list (-*)
     $stylesheets = $this->addAssets('stylesheets', $stylesheets, false);
     // combine
     $stylesheets = $this->combineValues('stylesheet', $stylesheets, $viewName);
     $css = $this->addAssets('Stylesheet', $stylesheets);
     // Merge the current view's javascripts with the app's default javascripts
     $javascripts = $this->mergeConfigValue('javascripts', $viewName);
     // clean stylesheet list (-*)
     $javascripts = $this->addAssets('javascripts', $javascripts, false);
     // combine
     $javascripts = $this->combineValues('javascript', $javascripts, $viewName);
     $js = $this->addAssets('Javascript', $javascripts);
     // set current js and css loaded, also add information about the current defined assets
     return implode("\n", array_merge($css, $js)) . "\n  \$response->defineCombinedAssets(" . var_export($this->debug_output, 1) . ");\n";
 }
 public function addHtmlAsset($viewName = '')
 {
     return parent::addHtmlAsset($viewName);
 }