meltingice / CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation
http://camanjs.com
BSD 3-Clause "New" or "Revised" License
3.55k stars 404 forks source link

Proxy in CakePHP #18

Closed solitud closed 12 years ago

solitud commented 12 years ago

Hi, I am experimenting with CamanJs in CakePHP. I wanted to use the proxy function which did not work in the beginning. The problem is the hardwired "url" variable, which breaks the CakePHP routing.

// We have a remote proxy setup properly, so lets alter the image src return Caman.remoteProxy + "?url=" + encodeURIComponent(src);

Perhaps you can change this in a future release to

// We have a remote proxy setup properly, so lets alter the image src return Caman.remoteProxy + "?camanjsSpecialUniquePhotourl=" + encodeURIComponent(src);

or something...

rwaldron commented 12 years ago

+1, This makes complete sense

meltingice commented 12 years ago

Fixed, the GET variable is now ?camanProxyUrl. Sorry for taking so long on this!

solitud commented 12 years ago

Thanks!