Good Morning
I have a webpage with autentication, i need to get session $_SESSION['username'] on grid, i have tried with the ["editoptions"] = array("defaultValue"=>'$username '); but no result, can someone help me please?
Thank you and great Job here
This should work:
$col["editoptions"] = array("defaultValue"=>$_SESSION['username']);
Make sure session variable is there before grid code executes.
Hey Abu thank you for your reply but still not working , if i do an echo $_SESSION['username'] it shows correctly, the session variables are working, i dont know why they dont work on the grid. Any other options?
this is my $col i think is everything correct
$col = array();
$col["title"] = "Creator";
$col["name"] = "CREATOR";
$col["editoptions"] = array("defaultValue"=>$_SESSION['username']);
$col["editable"] = false;
$col["editrules"] = array("required"=>true, "readonly"=>true);
$col["width"] = "60";
$col["align"] = "center";
$col["export"] = true;
$cols[] = $col;
Thank you one more time