Hello All
I have one controller.php class in which one function is setRecord which have one parameters default value is null .
class Test extend Controller
{
function Test(){}
function saveData()
{
}
function setRecord($fData="")
{
print_r($fData);
}
}
Now i have one view.php in which i called setRecord Function using ajax in which i passed array as a parameter so it's work now when i called second time this function using ajax without passing any parameter i want to the variable $fData value is the same as before so for that case i have to use Session but i don't want to use session i am using ajax to call this function so is there any way to restore the variable value for that class because the whole page is not reloaded so it' s possible to use global variable or static variable . I don't know how it's work
So how i can get Same Array variable next time when i called this function second time any suggestion for that .
Waiting for your reply....
Thanks and regards
--Amit patel