Can the "include" and "include into" statements only be used with query param-less URL's?
Allow me to quote from the documentation:
From 'include into':
"This command is identical to the include command, but it temporarily makes outBuffer the response buffer for the duration of the include"
Okay, that encourages me to look at the documentation for the include command, which says I should look at the section "Including Other Files", which says:
"If found, the included file is interpreted as if it were part of the source file. The scope of the included file is whatever the scope was where the include command appeared. This means that any local variables declared before the include are available in the scope of the include file’s code..."
In other words, as I hope it says pretty clearly, an include is not a request, it is as if you copied and pasted the included code within the same scope.
So in the included file you just refer to variables or collections that are defined in the including file.
This exact question was answered in the searchable mailing list archives (hint, hint).
Regards,
Aparajita Victory-Heart Productions www.aparajitaworld.com
"If you dare to fail, you are bound to succeed." - Sri Chinmoy | www.srichinmoylibrary.com
_______________________________________________ Active4D-dev mailing list [email protected] http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
