• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How am i supposed to access and change a variable over different controllers ?

#1
Hello , im trying to solve my mysterious Sad problem with codeigniter !

I want to pass a value from one controller's function to another controller's function and edit it's value.

This is what i have

Code:
class MY_Controller extends Controller { }
class MY_User extends MY_Controller {}

and

class Liveshow extends MY_Controller {
    function a() {
        //set a global $test = 123;
    }
}

class Channels extends MY_User {
    function b() {
        //echo the global variable $test
    }
}


How am i supposed to make it work ?

Thanks !
Reply


Messages In This Thread
How am i supposed to access and change a variable over different controllers ? - by invader7 - 11-19-2014, 12:07 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.