Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.