Welcome Guest, Not a member yet? Register   Sign In
CSS and Images with CodeIgniter
#13

[eluser]Unknown[/eluser]
[quote author="strogg" date="1195317499"]1. Did you add "css" to your .htaccess ?

Like this ;
RewriteCond $1 !^(index\.php|images|robots\.txt|css)

2. Did you load the URL Helper on your controller ?
$this->load->helper('url');

3. Then you can call your style file with base_url
<link rel="stylesheet" href='<?=base_url()?>css/yourstyle.css' type="text/css"/>[/quote]

Thanks, I don't know why it didn't occur to me... Smile Finally it's working.


Messages In This Thread
CSS and Images with CodeIgniter - by El Forum - 10-10-2007, 07:36 PM
CSS and Images with CodeIgniter - by El Forum - 10-10-2007, 07:46 PM
CSS and Images with CodeIgniter - by El Forum - 10-10-2007, 11:21 PM
CSS and Images with CodeIgniter - by El Forum - 10-10-2007, 11:28 PM
CSS and Images with CodeIgniter - by El Forum - 10-11-2007, 01:14 AM
CSS and Images with CodeIgniter - by El Forum - 10-11-2007, 11:02 AM
CSS and Images with CodeIgniter - by El Forum - 10-22-2007, 05:00 AM
CSS and Images with CodeIgniter - by El Forum - 10-22-2007, 05:21 PM
CSS and Images with CodeIgniter - by El Forum - 11-13-2007, 03:30 AM
CSS and Images with CodeIgniter - by El Forum - 11-17-2007, 04:38 AM
CSS and Images with CodeIgniter - by El Forum - 11-17-2007, 06:03 AM
CSS and Images with CodeIgniter - by El Forum - 11-17-2007, 07:36 AM
CSS and Images with CodeIgniter - by El Forum - 03-29-2008, 06:21 AM
CSS and Images with CodeIgniter - by El Forum - 10-10-2008, 09:39 AM
CSS and Images with CodeIgniter - by El Forum - 10-25-2009, 12:14 AM
CSS and Images with CodeIgniter - by El Forum - 10-25-2009, 12:32 AM
CSS and Images with CodeIgniter - by El Forum - 01-15-2010, 10:58 PM
CSS and Images with CodeIgniter - by El Forum - 01-16-2010, 06:55 PM
CSS and Images with CodeIgniter - by El Forum - 05-19-2010, 06:11 PM
CSS and Images with CodeIgniter - by El Forum - 05-19-2010, 06:23 PM
CSS and Images with CodeIgniter - by El Forum - 01-30-2011, 09:14 PM
CSS and Images with CodeIgniter - by El Forum - 06-06-2011, 01:45 AM
CSS and Images with CodeIgniter - by El Forum - 06-06-2011, 01:46 AM
CSS and Images with CodeIgniter - by El Forum - 06-06-2011, 04:31 AM
CSS and Images with CodeIgniter - by El Forum - 06-18-2011, 06:14 PM
CSS and Images with CodeIgniter - by El Forum - 06-19-2011, 07:09 AM
CSS and Images with CodeIgniter - by El Forum - 06-21-2011, 08:24 AM
CSS and Images with CodeIgniter - by El Forum - 04-10-2012, 12:50 PM
CSS and Images with CodeIgniter - by El Forum - 11-08-2013, 10:55 AM
CSS and Images with CodeIgniter - by El Forum - 11-08-2013, 11:29 AM
CSS and Images with CodeIgniter - by El Forum - 02-21-2014, 11:50 AM
CSS and Images with CodeIgniter - by El Forum - 02-21-2014, 12:23 PM
CSS and Images with CodeIgniter - by El Forum - 02-21-2014, 12:57 PM
CSS and Images with CodeIgniter - by El Forum - 02-21-2014, 02:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB