[eluser]ICEcoffee[/eluser]
this may be obvious to the experienced CI coder, but I learned this
works:
Quote:<link rel='stylesheet' href='<?php echo base_url() . "styles/style.css"; ?>' type='text/css' media='screen' charset='utf-8' />
and this doesn't:
Quote:<link rel='stylesheet' href='<?php echo base_url("styles/style.css"); ?>' type='text/css' media='screen' charset='utf-8' />
ie the difference of using base_url() and site_url() in the context above.
The reason base_url() - as used above - doesn't work, is because it adds 'index.php' into the href path, which for me, doesn't work. the browser output is:
Quote:<link rel='stylesheet' href='http://localhost/ci2/index.php/styles/style.css' type='text/css' media='screen' charset='utf-8' />
I hope this makes sense.