Welcome Guest, Not a member yet? Register   Sign In
Ok, sory but is about styles
#1

[eluser]Diego.xeis[/eluser]
As much as i wish all the previous topics about css links solve my problem here i'm.
I have my directory like this.

CI
-assets
-css
-js
-images

-captcha
-system
-user_guide

I did not find the correct configuration of the .htacces. The css link did echo correctly
Code:
<link  href="http://xeis.com.uy/CMS/CI/assets/css/test.css" rel="stylesheet" type="text/css" media="print" />
.

And this is my .htaccess inside CI:
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|css|robots\.txt|fav\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]

Any suggestions will be appreciated
#2

[eluser]Colin Williams[/eluser]
You have media="print"

So, you are testing this with a printer, right? Smile
#3

[eluser]Diego.xeis[/eluser]
Ok, this problem of mine of copy and paste is killing me. I didn't realize that i miss to remove that from the array!!
Code:
<?PHP
$this->load->helper('html');
$link = array(
    'href'    => 'assets/css/test.css',
    'rel'    => 'stylesheet',
    'type'    => 'text/css',
    'media' => 'print',<-------!!!!!!!!!!!!!!!!!!!!!!!
);
?&gt;

Thxs for pointing me the error, and reminded me to look everywhere before asking jejeje




Theme © iAndrew 2016 - Forum software by © MyBB