Welcome Guest, Not a member yet? Register   Sign In
Using CSS in CodeIgniter MVC
#1

[eluser]Rey Philip Regis[/eluser]
Hi guys,

I need your help, in my view "view_products.php" I need to attach an external css file "default.css"

Before that here's my directory structure:
code_igniter
index.php
license.txt
.htaccess
system
appplication
fonts
...
.... and so on

so what I did is:
<link type="text/css" rel="stylesheet" href="<?php echo $_SERVER['DOCUMENT_ROOT'].'code_igniter/system/css/default.css'; ?>" />

also I put an .htaccess file like:
RewriteEngine on
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php

and I saved that in the code_igniter directory {look at my directory structure above}
then when I execute http://localhost/code_igniter/index.php
the css didn't work. Any advice on how to correct it, so the css file will render its style to my view.

Good day.

PhilipSmile


Messages In This Thread
Using CSS in CodeIgniter MVC - by El Forum - 10-29-2008, 11:52 AM
Using CSS in CodeIgniter MVC - by El Forum - 10-29-2008, 12:23 PM
Using CSS in CodeIgniter MVC - by El Forum - 10-29-2008, 12:53 PM
Using CSS in CodeIgniter MVC - by El Forum - 10-29-2008, 02:10 PM
Using CSS in CodeIgniter MVC - by El Forum - 10-29-2008, 03:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB