[framework-one] Missing template handler question

11 views
Skip to first unread message

Seth Johnson

unread,
Apr 30, 2010, 4:42:07 PM4/30/10
to framew...@googlegroups.com

I need to accomplish a couple things with the Framework (in addition to all the great things it does already) that I am currently able to do with Fusebox, but can't seem to figure out with FW/1.  I need to be able to set up a googlesitemap.cfm file in the root directory and I need to enable an onMissingTemplate() handler which will call a 404.cfm handler file.  Since the application.cfc is catching all requests I am unsure how to go about accomplishing this.  The code that I use for FB 5.5 doesn't seem to work.

 

Has anyone been able to solve this or a similar problem, or is it even possible to make this work?

 

Thanks!

 

Seth

 

 

--
You received this message because you are subscribed to the Google Groups "framework-one" group.
To post to this group, send email to framew...@googlegroups.com.
To unsubscribe from this group, send email to framework-on...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/framework-one?hl=en.

Sean Corfield

unread,
Apr 30, 2010, 8:03:19 PM4/30/10
to framew...@googlegroups.com
Right now the easiest way to do this is to define
onRequest(targetPath) in your Application.cfc and if the requested
file (targetPath) is special, then simply include it, else call
super.onRequest(targetPath).

I've opened issue 65 to provide a cleaner way to do this in 1.2.

Sean


On Fri, Apr 30, 2010 at 1:42 PM, Seth Johnson <cfx...@gmail.com> wrote:
> I need to accomplish a couple things with the Framework (in addition to all
> the great things it does already) that I am currently able to do with
> Fusebox, but can't seem to figure out with FW/1.  I need to be able to set
> up a googlesitemap.cfm file in the root directory and I need to enable an
> onMissingTemplate() handler which will call a 404.cfm handler file.  Since
> the application.cfc is catching all requests I am unsure how to go about
> accomplishing this.  The code that I use for FB 5.5 doesn't seem to work.
>
>
>
> Has anyone been able to solve this or a similar problem, or is it even
> possible to make this work?

Reply all
Reply to author
Forward
0 new messages