I have a Cake PHP plugin that I have written. The plugin has its own controller so that it can serve up some dynamic code on the plugin's index page (/keyedit/ or /keyedit/index).
When images are requested from /keyedit/img/ they are served up properly. But if the image doesn't exist Cake thinks the /img/ is a method in the keyedit_controller.php and throws a missing method error. This wouldn't be so bad, but it also deletes the session cookie, breaking everything else.
How can I tell Cake to just return a 404 when files are missing from /img/ instead of falling through into the controller code?
I suppose I could add a img() method that just returns a 404, but that seems like a kludge.(ETA: Tried that, still deletes the session cookie)