booxvid Posted September 13, 2012 Share Posted September 13, 2012 I have an index function of my controller which it's the index page of my application, and in my reg_form function in my controller I load my view_registration.php the php file has a css design that's attached by the header.php already that's in my index function when I view the page of my registration form, there's no design? Is there a way that I can load my css file in a function from a controller? Quote Link to comment https://forums.phpfreaks.com/topic/268339-css-of-a-function-from-a-controller/ Share on other sites More sharing options...
Mahngiel Posted September 13, 2012 Share Posted September 13, 2012 probably a path problem. open up the Source and try to follow the link to your CSS. if a) there is no link, you now it's not included. if b) the link 404's you know it's a path issue. Tip: link your CSS from the http path and not relative path. Your last post said you were using codeigniter, so go example.com/application/views/style.css Quote Link to comment https://forums.phpfreaks.com/topic/268339-css-of-a-function-from-a-controller/#findComment-1377747 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.