On Mon, Nov 30, 2009 at 2:07 AM, Alan Williamson <[email protected]> wrote:
> But what is CFSCRIPT syntax?
>
> The reason i asked is that i spotted this in Sean's code:
That's inside a comment and isn't legal code - so thanx for noticing
:) I reconstructed the comment from the expanded out code that I had
to write to get it run on Open BlueDragon.
Here's the actual source of the component:
<cfcomponent extends="org.corfield.framework"><cfscript>
// Either put the org folder in your webroot or create a mapping for it!
this.name = 'fw1-root';
// FW/1 - configuration:
variables.framework = structNew();
// controllers/layouts/services/views are in this folder:
variables.framework.base = getDirectoryFromPath( CGI.SCRIPT_NAME ) &
'introduction';
// The above code is for OpenBD 1.1. On CF8 and Railo 3.1 you could
just do:
// variables.framework = {
// base = getDirectoryFromPath( CGI.SCRIPT_NAME ) &
'introduction';
// }
</cfscript></cfcomponent>
I'll remove the ; from the comment!
BTW, Railo allows : in the struct literals - like JavaScript - but
ColdFusion does not, IIRC.
--
Sean A Corfield -- (904) 302-SEAN
Railo Technologies US -- http://getrailo.com/
An Architect's View -- http://corfield.org/
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
--
Open BlueDragon Public Mailing List
http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon
mailing list - http://groups.google.com/group/openbd?hl=en
!! save a network - please trim replies before posting !!