Jump to content

CSS of a function from a controller?


booxvid

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/268339-css-of-a-function-from-a-controller/
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.