Access global variables

edited January 2014 in News & Announcements
Hi,

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

Comments

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