Addon Outside the CFWheels Framework

32 views
Skip to first unread message

Roy

unread,
Feb 8, 2011, 11:57:54 AM2/8/11
to ColdFusion on Wheels
I am trying to integrate a "chat" function written in PHP into a
CFWheels website. I have a directory off the root with an empty
application.cfm file but I get the message: Wheels.ViewNotFound -
Could not find the view page for the index action in the phplive
controller. But there is no controller for this. Any suggestions?

Impatus

unread,
Feb 8, 2011, 12:55:13 PM2/8/11
to ColdFusion on Wheels
rename application.cfm to application.cfc

Roy

unread,
Feb 8, 2011, 1:10:41 PM2/8/11
to ColdFusion on Wheels
Sorry, that was a typo. It is an application.cfc file (copied from
miscellaneous).

Impatus

unread,
Feb 8, 2011, 1:16:01 PM2/8/11
to ColdFusion on Wheels
Really? Are you sure it's a .cfc and not a application.cfc.txt ? I
have this in a dozen folders. What version of Wheels are you using ?

Roy

unread,
Feb 8, 2011, 3:01:28 PM2/8/11
to ColdFusion on Wheels
It's a .cfc (i'm positive!) and I have another directory with php and
the identical Application.cfc and it works fine.

Roy

unread,
Feb 8, 2011, 3:01:45 PM2/8/11
to ColdFusion on Wheels
Version 1.0.5

On Feb 8, 1:16 pm, Impatus <hev...@gmail.com> wrote:

Chris Peters

unread,
Feb 8, 2011, 3:03:57 PM2/8/11
to cfwh...@googlegroups.com
Using Apache? Try adding an .htaccess to the directory with this line:

RewriteEngine off


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


Roy

unread,
Feb 8, 2011, 5:24:03 PM2/8/11
to ColdFusion on Wheels
That did it! Thanks...

Chris Peters

unread,
Feb 8, 2011, 9:21:22 PM2/8/11
to cfwh...@googlegroups.com
You are welcome. :)

Impatus

unread,
Feb 8, 2011, 9:33:45 PM2/8/11
to ColdFusion on Wheels
Out of curiousity, what is your primary rewrite look like?

because if you add the rewrite rule to not look for directories, you
wouldn't need any of the above :D

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

Not a file that exists.
Not a Directory that exists.

Chris Peters

unread,
Feb 8, 2011, 9:43:03 PM2/8/11
to cfwh...@googlegroups.com
I just use the stock .htaccess that comes with Wheels. I know very little about URL rewriting, honestly. :)

Impatus

unread,
Feb 8, 2011, 9:48:14 PM2/8/11
to ColdFusion on Wheels
Add those two lines to the top of your rewrite conditions and you will
no longer need to use the previously mentioned method. It will look to
see if your directory exists and NOT rewrite if it does. I think that
was the biggest oversight I made, because I just assumed it would have
been in place :P

Chris Peters

unread,
Feb 8, 2011, 9:50:48 PM2/8/11
to cfwh...@googlegroups.com
Know how to use GitHub? You should do a pull request suggesting those changes.

Impatus

unread,
Feb 9, 2011, 1:35:36 PM2/9/11
to ColdFusion on Wheels
My first official contribute will be the .htaccess file? :D

Gotta start somewhere ;)

I am in the process of doing it now -- it should make a ton more sense
with the tutorials on cfwheels.org now. I know it says 'just create a
folder and add a blank application.cfc into it to stop cfwheels from
attempting to process it' but, it doesn't work if you use the
default .htaccess provided by them. Very interesting accidental
contradiction :D...

Doing so now.

On Feb 8, 9:50 pm, Chris Peters <ch...@clearcrystalmedia.com> wrote:
> Know how to use GitHub? You should do a pull request suggesting those
> changes.http://github.com/cfwheels/cfwheels
Reply all
Reply to author
Forward
0 new messages