Snake Hollywood wrote:

OK I am just sick and tired of looking at this now, don't have the energy
for debugging these days, having kids really takes it out of you :-)

I store all my global_variables in a WDDX file, which I read in and store in
a request variable, then convert the WDDX into structures in REQUEST scope.

Here is the code

---
        
        <cfset request.encryptKey = ""><!--- the encryption key if used
onthe wddx file --->
        <cfsavecontent variable="request.config"><cfinclude
template="global_variables.wddx"></cfsavecontent>
        
        <cfif request.encryptkey IS "">
                <!--- don't decrypt if no encryptkey provided --->
                <cfwddx action="WDDX2CFML" input="#request.config#"
output="request">
        <cfelse>
                <!--- decrypt wddx packet --->
                <cfwddx action="WDDX2CFML" input="#Decrypt(request.config,
requestencryptkey)#" output="request">
        </cfif>
---


Now for some reason the structures never seem to get created. But doing a CFDUMP of request scope, does show request.config is there, and does actually show all it's internal structures. The CFWDDX code definitely gets run, but is not producing anything.

Any ideas.??


Ummm... just guessing really because I've never got round to testing this out properly, but your output from the last cfwddx wddx2cfml to request..... Maybe its trying to put the output into a variable called "request" in the variables scope, rather than overwriting the whole request scope?

In CF5 most of the variable scopes were just extensions of the "variables" scope. However, in CFMX I think that the scopes have their own space outside of the "variables" scope, so some tricks of overwriting whole scopes no longer work in the way they used to.

Regards

Stephen


-- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by 
activepdf.com*
     *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
          *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]



Reply via email to