FW/1 only on index.cfm

17 views
Skip to first unread message

Andy Jarrett

unread,
Aug 2, 2010, 2:10:44 PM8/2/10
to framew...@googlegroups.com
This is probably me just being silly but is there a setting to make FW/1 only fire when index.cfm is called?

Thanks,
Andy Jarrett
www.andyjarrett.com
www.linkedin.com/in/andyjarrett

Ξ Please think before you print Ξ

Seth Johnson

unread,
Aug 2, 2010, 2:39:58 PM8/2/10
to framew...@googlegroups.com

I have tried various ways to make this work, but haven't been able to yet.  This works in FB5, but not FW/1:

 

function onRequest(any targetpage) {

            if (ListLast(arguments.targetPage, "/") != 'index.cfm')

                  {

                        include arguments.targetPage;

                  }

                  else

                  {

                        super.onRequest(arguments.targetPage);

--
FW/1 on RIAForge: http://fw1.riaforge.org/
 
FW/1 on github: http://github.com/seancorfield/fw1
 
FW/1 on Google Groups: http://groups.google.com/group/framework-one

Sean Corfield

unread,
Aug 2, 2010, 5:02:00 PM8/2/10
to framew...@googlegroups.com
2010/8/2 Andy Jarrett <ma...@andyjarrett.co.uk>:

> This is probably me just being silly but is there a setting to make FW/1
> only fire when index.cfm is called?

FW/1 takes over all .cfm requests but you can use the unhandledPaths
framework configuration setting to add specific paths you don't want
handled by FW/1 (either partial directory paths or file paths).
--
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

Andy Jarrett

unread,
Aug 3, 2010, 1:56:45 AM8/3/10
to framew...@googlegroups.com
Thanks Sean.

Might be worth adding this to the skeleton app ( which is where I was checking last night for a setting) in the commented out setting for http://github.com/seancorfield/fw1/blob/master/skeleton/Application.cfc

Andy Jarrett
www.andyjarrett.com
www.linkedin.com/in/andyjarrett

Ξ Please think before you print Ξ


Sean Corfield

unread,
Aug 3, 2010, 11:16:51 AM8/3/10
to framew...@googlegroups.com
Pls open a ticket on github - and folks can review it to ensure I'm
not missing any other settings!

Thanx,
Sean

2010/8/2 Andy Jarrett <ma...@andyjarrett.co.uk>:

Reply all
Reply to author
Forward
0 new messages