I want to declare a global variable in my model and will use it accordingly.
syntax below is just example how I want to use it, may not be proper syntax. But I want to know proper syntax for this to implement.
global $stddata
call to 1st function via ajax:
add a array of data to this global variable.
global $stddata = array(1=>"a",2=>"b");
after user triggers some event call to 2nd function via ajax:
Access the array stored in global variable above.
echo $stddata