Quantcast
Channel:
Viewing all articles
Browse latest Browse all 4235

Re: Wrong path in css on server

$
0
0

PS I'm not sure if was worth mentioning but in my Page.php file I am concatenating my css and js files like so:

   // ******************** concatenate all javascript and css ******************** //
   
   $theme_folder = sprintf('themes/%s', SSViewer::current_theme());

      $js_files = array(
         sprintf('%s/js/jquery.1.9.1.min.js', $theme_folder),
         sprintf('%s/js/common.js', $theme_folder),
      );

      $css_files = array(
            sprintf('%s/css/theme.css', $theme_folder),
         );
      foreach($js_files as $js) {
         Requirements::javascript($js);
      }

      foreach($css_files as $css) {
         Requirements::css($css);
      }

         Requirements::combine_files("js.js", $js_files);
         Requirements::combine_files("css.css", $css_files);
         Requirements::process_combined_files();   
   
   // ******************** end concatenation ******************** //

Thanks


Posted to: Wrong path in css on server | Show Thread | Post Reply


Viewing all articles
Browse latest Browse all 4235

Trending Articles