Access global variables

edited January 2014 in News & Announcements

I've several variables defined in global.php file, and I need to access those variables in my controller. Is there any way to access it


  • edited January 2014
    You could try the following:
    $global = $this->fuel->pagevars->view();
    The global variables are loaded with the view variables.
  • edited 6:29AM
Sign In or Register to comment.