![]() ![]() ![]() In my early days with Scriptcase I found out that using global variables was a bit messy as declaring them in one application might be generating issues if you are using another application without passing the declaration application. In index 2 i stored a field name that i want to use in a grid in the select statement. It is important to see the difference regarding in and out for global variables. I have to disagree partially on what Albert says.Ī Scriptcase global variable is saved into PHP session and is accessible to ALL modules (apps) sharing the same session.Īs soon as a global variable is assigned (regardless is declared as GET,POST or SESSION, and this is another big source of confusion) it is saved into the PHP session.Ī module variable (called attribute in SC language are all saved in PHP session but in different places so the three values are kept separate.ĭue to the way PHP sessions work, if you don’t want that a SC global variable is shared among different apps you need to make sure that each app runs in a separate session (e.g. i have a global variable, which is an array.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |