[SOLVED] View losing CSS Style after login validation fails. - 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: [SOLVED] View losing CSS Style after login validation fails. (/showthread.php?tid=48197) |
[SOLVED] View losing CSS Style after login validation fails. - El Forum - 01-07-2012 [eluser]cdonate[/eluser] So, this is the header of my login_view.php. Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> My controller have this code in it: Code: <?php http://localhost/code/index.php/ the page is displayed without problem, the CSS Style and images are linked. But, if I just click on Login, without typing my credentials the page loses all its styles and images. After the failed authentication my browser points to: http://localhost/code/index.php/login/validate_credentials I gess that that has something to do with it. My base_url is set to http://localhost/code/, that is pointing to C:\wamp\www\code. My css and img files are inside C:\wamp\www\code\css and C:\wamp\www\code\img. Thanks for the help, guys! [SOLVED] View losing CSS Style after login validation fails. - El Forum - 11-17-2012 [eluser]Unknown[/eluser] I made an account on here just to say THANK YOU! Funny how the simplest of things can stump you for hours! |