ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Input class and global_vars

February 01, 2012 8:25am

Subscribe [1]
  • #1 / Feb 01, 2012 8:25am

    solist

    16 posts

    Hey!

    Under EE1, we used to be able to get global_vars from the input class ($IN->global_vars is an array of the current $global_vars in the path.php file.)

    From the EE2 input class, the global_vars array ( $this->EE->input->global_vars(‘xyz’) ) doesn’t seem accessible anymore. How can we get the global_var array from PHP with EE2?

    Thanks!

  • #2 / Feb 02, 2012 3:12pm

    Dan Decker

    7338 posts

    Hi solist,

    Under ExpressionEngine 2 the global_vars aren’t in the input class, they are in the config class. You can try:

    $this->EE->config->item('global_vars');

    Cheers!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases