![]() |
probably a simple question about routes - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: probably a simple question about routes (/showthread.php?tid=7383) Pages:
1
2
|
probably a simple question about routes - El Forum - 04-06-2008 [eluser]thetit4n[/eluser] I am using code igniter to create a CMS and i am trying to link to a CSS file, but i think because of the way the urls work it is looking for a controller. Maybe not i know its the right url. The way i havethe filesystem set up is this: <trunk> --<fw_theme> ----<default_theme> -----<theme.css> --<system> ----<config> ----<controllers> ----<etc> and the code is this Code: <style type="text/css"> that is generated dynamically but thats what it turns out to be and i think it is probably looking for the controller fw_theme. FYI i have htaccess to "hide" the index.php probably a simple question about routes - El Forum - 04-06-2008 [eluser]thetit4n[/eluser] Or is there any other way i can import a CSS file??? Something PLEASE! im begging you! probably a simple question about routes - El Forum - 04-06-2008 [eluser]wiredesignz[/eluser] This is not a URL its a Path! Code: /var/www/fw/trunk/fw_theme/theme.css probably a simple question about routes - El Forum - 04-06-2008 [eluser]thetit4n[/eluser] i understand that, but it dosent work even though it should and i thought because of the way the url works it might be taking it over. Like you can do a form action the same way, and it takes over. Why not a CSS import. SO can you answer my question, how can i import a CSS file? probably a simple question about routes - El Forum - 04-06-2008 [eluser]wiredesignz[/eluser] Nothing takes over anything, your browser (client side) will try to prefix the domain to any incomplete URLs it finds on a page. @import is correct for CSS, just get the URL right and it will work. probably a simple question about routes - El Forum - 04-07-2008 [eluser]thetit4n[/eluser] its not a url its a path, and i have done this before and it worked. I will try what you said and see if it works thank you probably a simple question about routes - El Forum - 04-07-2008 [eluser]thetit4n[/eluser] No dice, i tried using a "URL" instead of a "path" and it still didn't import, i have used relative paths for CSS before, i don't know why it isn't working. But by using a direct URL i think that codeigniter is gonna take http://<domain>/fw_themes and look for a controller called fw_themes. Am i wrong? probably a simple question about routes - El Forum - 04-07-2008 [eluser]wiredesignz[/eluser] You say relative path and I say relative URL. Paths to me are server side, for instance if `/var/...` is below the web root (server side path) it will not work in CSS, if `/www/` = web root then a relative URL works from there. You might need to check .htaccess is allowing access to your CSS directory. .htaccess will send any unknown RewriteCond to index.php probably a simple question about routes - El Forum - 04-07-2008 [eluser]thetit4n[/eluser] but it does =/ i have done this before many many times. I'm not calling you a liar or trying to argue. but i got a friend trying to figure it out. It's probably something stupid right in fromt of my face. Thank you for your help probably a simple question about routes - El Forum - 04-07-2008 [eluser]wiredesignz[/eluser] Quote:The '@import' rule allows users to import style rules from other style sheets. Any @import rules must precede all rule sets in a style sheet. The '@import' keyword must be followed by the URI of the style sheet to include. A string is also allowed; it will be interpreted as if it had url(...) around it.Does this help? |