$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 12:26PM
    Is there possibly a route being used for "admin"?
  • edited 12:26PM
    Nope, only these:
    $route['orderonline/([a-z]+)'] = 'order/orderonline/$1'; $route['orderonline'] = 'order/orderonline';
  • edited 12:26PM
    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 12:26PM
    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.