$pages array in global file problem

edited November 2012 in News & Announcements
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?

Thanks

Comments

  • edited 5:36AM
    Is there possibly a route being used for "admin"?
  • edited 5:36AM
    Nope, only these:
    $route['orderonline/([a-z]+)'] = 'order/orderonline/$1'; $route['orderonline'] = 'order/orderonline';
  • edited 5:36AM
    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?
  • edited 5:36AM
    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.
Sign In or Register to comment.