Evening everyone
I have a class that parses a query string along the lines of "/?/param1/param2/param3/", and then includes a php file as a template based on the value of param1.
The inclusion of the file is ok - the problem i am having is how to get the values of param 2 (and onwards) so the included file can access them as variables. They reside within the object itself, but the file needs to be able to see what they are.
I assumed that when including files with normal code, the variables are accessible within the global scope, so i specifically added them to $_GLOBALS['vars'], but i can't access them from the included file by calling them from that array (array is empty).
I know the order in which the parameters come - can anyone help me on this one?
Cheers
Alex