m1ku5 Posted March 20, 2008 Share Posted March 20, 2008 Hello all, first post this may be more of a php question, but im unsure.. Ok, so i have a small mvc site going, and im having an issue with losing css formatting for a page. When the page initially loads, it is styled correctly. I have a login form that sends the un and password to a processing page, which checks the password and then loads some variables into my template, and then shows the original page again. when the original page (template) loads, all of my variables are there and everything is the same, but there is no style applied. index page -> posts to a login function in my index controller -> login function then loads the index view, but without css!!! cant figure this one out....help! here are my css imports <style type="text/css" media="all">@import "includes/css/master.css";</style> <style type="text/css" media="all">@import "includes/css/nav.css";</style> i dont know what else to post to help you help me, juect let me know thanks in advance, ill be here more often Link to comment https://forums.phpfreaks.com/topic/97024-no-stylesheet-applied-to-page-after-processing/ Share on other sites More sharing options...
awpti Posted March 20, 2008 Share Posted March 20, 2008 Change: <style type="text/css" media="all">@import "includes/css/master.css";</style> <style type="text/css" media="all">@import "includes/css/nav.css";</style> to: <style type="text/css" media="all">@import "/includes/css/master.css";</style> <style type="text/css" media="all">@import "/includes/css/nav.css";</style> Link to comment https://forums.phpfreaks.com/topic/97024-no-stylesheet-applied-to-page-after-processing/#findComment-496510 Share on other sites More sharing options...
m1ku5 Posted March 20, 2008 Author Share Posted March 20, 2008 doesnt work i tried using different paths: /includes/css ../includes/css includes/css only the last one works at all, but not when the page send the login info and reloads the view Link to comment https://forums.phpfreaks.com/topic/97024-no-stylesheet-applied-to-page-after-processing/#findComment-496515 Share on other sites More sharing options...
awpti Posted March 20, 2008 Share Posted March 20, 2008 Is this a framework that you designed/developed or is this a third-party one like CodeIgniter, Kohana or otherwise? All we can ascertain at this point is that it is NOT able to locate the .css files (you server logs will show you where it's looking and most likely kicking a 404 back) Link to comment https://forums.phpfreaks.com/topic/97024-no-stylesheet-applied-to-page-after-processing/#findComment-496517 Share on other sites More sharing options...
m1ku5 Posted March 20, 2008 Author Share Posted March 20, 2008 this is a framework that i have developed the call to the controller for the login is in the index controller. so the index controller has 2 functions: index and login the index page posts to action="/login" and then login loads the index view again so the css request when the view is reloaded is /login/includes... instead of /includes. the same issue is happening with images, so this is clearly a problem with my framework....but what this is, i cant understand. any ideas from what ive told you? Link to comment https://forums.phpfreaks.com/topic/97024-no-stylesheet-applied-to-page-after-processing/#findComment-496522 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.