CFC To Generate Fusebox Parsed Files
Brian Kotek has a neat cfc to re-generate the Fusebox parse files. It could be the start of a FB4 version of Barney's Fusedocer?
Brian Kotek has a neat cfc to re-generate the Fusebox parse files. It could be the start of a FB4 version of Barney's Fusedocer?
To ensure that a fusebox is completely cleared, put his code in the fusebox.init.cfm file.
<!------------------------------------------------------------------------------
if the app is to be reset a password is also required
------------------------------------------------------------------------------->
<cfif NOT StructKeyExists(application,"isApplicationAlive")
OR (url.reset AND url.password EQ application.fusebox.password)>
<!------------------------------------------------------------------------------
clear out the parsed directory
------------------------------------------------------------------------------->
<cflock scope="application" type="exclusive" timeout="3000">
<cfset strParseDirectory = "#application.fusebox.rootdirectory#parsed">
<cfset StructDelete(application,"fusebox")>
<cfdirectory action="list"
name="rstParseDirectory" directory="#strParseDirectory#" filter="*.cfm">
<cfloop query="rstParseDirectory">
<cffile action="delete" file="#strParseDirectory#/#rstParseDirectory.name#">
</cfloop>
</cflock>
</cfif>
Sean Corfield (as usual) has detailed the way FUSEBOX_APPLICATION_PATH works.
An interesting thread on the Fusebox forum discussing the difference between DAO and DTO.
Another hat tip to John Beynon.
Here's a link to his "Learning Fusebox" blog category.
Another interesting posting by John Beynon. This time on frameset and FB4.1 which is of current interest.
I thought I'd got a good handle on FB framesets, but it's alway good to have a second opinion!
Here's a PHP Wiki on the FB4 core files etc.
Hey, this was me!
"The exact order of execution of various phases and plugins in Fusebox 4.1".
Sean Corfield has reworked Ray's Blog CFC to work under FB4.1.