3Jun/075
Cakephp : JsController could not be found
Today I was figuring out how to build an ajax login, but got this very strange error "JsController could not be found". After a couple of hours searching I noticed that I did not had copied all the javascript files that I needed to the webroot/js folder.
Yes, you already might guess what was causing this problem... right, my javascript helpers were including a javascript file that wasn't available.
So if you get this very strange error, verify for yourself if every javascript file that you use, also really exists in the "js" folder.
Hope it helps anyone, because I couldn't find the answer while searching the internet.
August 1st, 2007 - 09:29
Hello! Good Site! Thanks you! nztryyobckl
September 18th, 2007 - 02:06
Hey thanks a million! That did it. New to cake but I now understand that the confusion comes from the fact that the dispatcher grabs all requests to non-existing files.
Big thanks for posting this. Cheers!
June 4th, 2008 - 20:04
Big thanks
Was exactly in the same trouble
January 21st, 2009 - 19:00
Thanks, I feel so stupid now. I had forgoten to rename the js files. (:o|)
October 13th, 2009 - 03:50
Thanks man, I face this same issue.