V-TEK Weblog about webdevelopment and linux

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.

About admin

No description. Please complete your profile.
Comments (5) Trackbacks (0)
  1. Hello! Good Site! Thanks you! nztryyobckl

  2. 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!

  3. Big thanks :)
    Was exactly in the same trouble :D

  4. Thanks, I feel so stupid now. I had forgoten to rename the js files. (:o|)

  5. Thanks man, I face this same issue.


Leave a comment


No trackbacks yet.

Recent Comments

Tags

Apache cakephp cpanel dav dd-wrt DNS Ext3 Framework GIT GNU grub javascript Kernel lilo Linux LPI LVM MVC MySQL Netbeans Netfilter PHP piping ps3 redirection regex Ruby on Rails Samba Sendmail Shell Skype SNMP Squid Symfony ubuntu upnp vim windows X Xorg X Window System