Before I start down this track, a couple of questions for the more knowledgeable developers here:
1) If I declare a variable in a snippet as global, can I access and modify it from another snippet. If so where do I need to declare it global. (I think i've finally got to grips with scoping rules related to variables and functions - this is one area where a good knowledge of 'c' and 'c++' does not help with PHP!)
2) If I define a class and its methods and variables in one snippet, and create an instance of the class, can I access the instance, methods and global and static variables from another snippet, or do I need to add them to index.php? [In practice, I'd probably add them to index.php for my own use, and release as a snippet for others.]
TIA
mike
Edited by mikef, 15 April 2006 - 12:14 PM.











