Help! all styles disappear when I go to a different view - 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: Help! all styles disappear when I go to a different view (/showthread.php?tid=21885) |
Help! all styles disappear when I go to a different view - El Forum - 08-24-2009 [eluser]zuluanshee[/eluser] here is the site: travelfound.com press the 'Europe' link at the right (that's teh only one currently configured), you'll see what happens. the view is mostly the same as the front page. here si the code view Code: <div class="newsItem"> Code: class CountriesModel extends Model controller Code: class Continents extends Controller Help! all styles disappear when I go to a different view - El Forum - 08-24-2009 [eluser]davidbehler[/eluser] I take it that your css folder is outside the system/application folder? Then try using Code: <link rel="stylesheet" type="text/css" href="<?php echo base_url().'/css/style.css'; ?>" /> Help! all styles disappear when I go to a different view - El Forum - 08-24-2009 [eluser]Dam1an[/eluser] [quote author="waldmeister" date="1251113211"]I take it that your css folder is outside the system/application folder? Then try using Code: <link rel="stylesheet" type="text/css" href="<?php echo base_url().'/css/style.css'; ?>" /> Code: <link rel="stylesheet" type="text/css" href="<?php echo base_url().'css/style.css'; ?>" /> Help! all styles disappear when I go to a different view - El Forum - 08-24-2009 [eluser]davidbehler[/eluser] You are right! For my projects I have rewritten the base_url method to actually take a parameter (similar to site_url) and not have to do the concatination myself Help! all styles disappear when I go to a different view - El Forum - 08-24-2009 [eluser]zuluanshee[/eluser] ok i guess it's normal to put in system/applicatin folder. Changing right now Help! all styles disappear when I go to a different view - El Forum - 08-24-2009 [eluser]zuluanshee[/eluser] hmm, same problem. Front page is ok but when you click Europe, the styles are still missing. Help! all styles disappear when I go to a different view - El Forum - 08-24-2009 [eluser]InsiteFX[/eluser] Try this: Code: In head section: This should be in all your html views. Enjoy InsiteFX Help! all styles disappear when I go to a different view - El Forum - 08-24-2009 [eluser]zuluanshee[/eluser] Bravo! Fixed! Thanks. |