Welcome Guest, Not a member yet? Register   Sign In
How to load the css stylesheets ‘dynamically’ ?
#5

[eluser]PhilTem[/eluser]
Even faster/nicer

Code:
echo link_tag('assets/css/' . $this->uri->rsegment(1)  . '.css');

which will use the re-routed URI to set the stylesheet. If you don't have routes, it's basically just useful since it is translating empty URIs, i.e., the default_controller to what you set in APPPATH/config/routes.php Wink


Messages In This Thread
How to load the css stylesheets ‘dynamically’ ? - by El Forum - 01-26-2013, 04:27 PM
How to load the css stylesheets ‘dynamically’ ? - by El Forum - 01-27-2013, 01:59 PM
How to load the css stylesheets ‘dynamically’ ? - by El Forum - 01-27-2013, 03:29 PM
How to load the css stylesheets ‘dynamically’ ? - by El Forum - 01-27-2013, 07:17 PM
How to load the css stylesheets ‘dynamically’ ? - by El Forum - 01-28-2013, 01:23 AM
How to load the css stylesheets ‘dynamically’ ? - by El Forum - 01-29-2013, 07:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB