title: How to dynamically control paths in static CSS files with MVC code igniter project
body: <p>I'm creating a website/codeigniter-project that uses views which link to external CSS files.</p>
  
  <p>Everywhere throughout my project/web-page's views I can control the URL paths of images, links, etc by constructing them from the 'base_url' setting variable. I don't have any control over static, linked external CSS files. This means that whenever my base URL path changes for my site I have to go through my CSS files and do global search/replaces to update all my paths.</p>
  
  <p>To solve this I thought about creating a controller just to load CSS/JavaScript files and treating the actual files like views with hooks but I was talked out of this by @WesleyMurch in this question:</p>
  
  <p><a href="https://stackoverflow.com/questions/6613376/using-a-controller-to-handle-returning-customized-css-javascript-files-with-cod">Using a controller to handle returning customized css &amp; javascript files with codeigniter</a></p>
  
  <p>How can I dynamically assign base-paths to my css assets so I don't have to do global search and replaces every time I update the base path of my site?</p>