Re: How to Handle images w/ a Route

2010-02-09 Thread mtachrono
MediaView for this! -- View this message in context: http://old.nabble.com/How-to-Handle-images-w--a-Route-tp27494808p27511597.html Sent from the CakePHP mailing list archive at Nabble.com. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions

Re: How to Handle images w/ a Route

2010-02-08 Thread Kyle Decot
The original is an image that someone is uploading. I don't want to have to create the 75x75 version when they do the upload. I would like to generate it on the fly when someone tries to access it. I would also like to keep the path similar to the original so I don't have to create something like

How to Handle images w/ a Route

2010-02-07 Thread Kyle Decot
I store all of my full size images at something like /img/photos/ filename_goes_here.jpg I would like to be able to add a route so that if I visit /img/photos/75x75_filename_goes_here.jpg it will be handled by my images controller. I've tried adding: Router::connect('/img/photos/75x75_*',

Re: How to Handle images w/ a Route

2010-02-07 Thread Miles J
Quick question, why are you routing it to a controller, if the path is basically the same? On Feb 7, 7:19 pm, Kyle Decot kdec...@gmail.com wrote: I store all of my full size images at something like /img/photos/ filename_goes_here.jpg I would like to be able to add a route so that if I visit