True enough.  I just like stripping out the .cfm  It makes it just a tiny
bit more difficult for less experienced people to figure out what you are
doing exactly ... Especially if you change all of your URL variable
delimiters to / instead of ?, =, and &

Oh .. also, my comments are not Fusebox speciffic, since I don't use it ;)
I can think of a few instances in a non Fusebox setting that you might want
to include a .cfm page in a different page than the index.cfm.  In this
case, a global redirect based on whether or not the index.cfm is used would
be undesirable ... BUT, since this *is* a Fusebox list and everything is
supposed to make its way through the index.cfm anyway .. just ignore me ;)

Todd Ashworth
www.janty.com - We put the `u` in music!

----- Original Message -----
From: "Brandon Paolin" <[EMAIL PROTECTED]>
To: "Fusebox" <[EMAIL PROTECTED]>
Sent: Friday, January 12, 2001 9:21 AM
Subject: Re: passing page name through url


| but if you do pass the .cfm in the url (assuming that all your pages are
| cfm) , and set in the application file to redirect if its not the
index.cfm,
| then people shouldn't be able to get to any other files, right?
|
| ----- Original Message -----
| From: "Todd Ashworth" <[EMAIL PROTECTED]>
| To: "Fusebox" <[EMAIL PROTECTED]>
| Sent: Friday, January 12, 2001 9:15 AM
| Subject: Re: passing page name through url
|
|
| > That's how I build all of my sites actually.  One thing you might want
to
| do
| > is separate the extension from the file name.  This will help prevent
| people
| > from running files that they shouldn't.  Also .. watch your directory
| > structure very carefully.  If you put something in the wrong place,
| someone
| > could get to it easily.
| >
| > | <cfswitch expression="#request.page#">
| > |     <cfcase value="dspMain,actMain">
| > |         <cfinclude template="#request.page#.cfm">
| > |     </cfcase>
| > | </cfswitch>
| >
| > Todd Ashworth
| > www.janty.com - We put the `u` in music!



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to