Hello, I am adding this line in my views/_variables/golbal file: $pages['admin'] = array('css'=>'humanity/jquery-ui-1.8.18.custom'); Browsing to localhost/mysite/admin does not inclue the css file.
Adding the css to the $vars['css'] array does work. Why is that?
I'm not able to replicate that issue locally. Does it properly pass variables to other pages if entered in the $pages array in the global variables file?
Ok, managed to solve this now. I am calling the admin view from an admin controller, so I added: $vars['css'] = 'humanity/jquery-ui-1.8.19.custom.css'; to the controller and that helped.
Comments
$route['orderonline/([a-z]+)'] = 'order/orderonline/$1'; $route['orderonline'] = 'order/orderonline';
$vars['css'] = 'humanity/jquery-ui-1.8.19.custom.css';
to the controller and that helped.