Welcome Guest, Not a member yet? Register   Sign In
Controlling CSS with Codeigniter
#1

[eluser]Unknown[/eluser]
Hello,

I am new to Codeigniter and need a little help. I would like to set it so that someone can controller certain elements of the CSS file from a form (for instance, changing the background color, the size of text, link color, etc.).

How can I do this with Codeigniter?

Thanks for any and all help.

All the best,

Moshe
#2

[eluser]dudeami0[/eluser]
Code:
class Includes extends Controller {
  
   function styles() {
      header('Content-Type: text/css');
      // Use a view or echo stylesheets here
   }

}

With that just call yoursite.com/includes/styles and it should return your CSS stylesheet that is echoed/viewed in the controller.
#3

[eluser]Unknown[/eluser]
Hi there,

Thanks.

I'll give it a try.

Be well,

Moshe




Theme © iAndrew 2016 - Forum software by © MyBB