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 /images/index/?filename=blahblahblah

On Feb 8, 2:48 am, Miles J <mileswjohn...@gmail.com> wrote:
> 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 /img/photos/75x75_filename_goes_here.jpg it will be handled
> > by my images controller. I've tried adding:
>
> > Router::connect('/img/photos/75x75_*', array('controller' => 'images',
> > 'action' => 'index'));
>
> > However I get the error:
>
> > Error: ImgController could not be found.
>
> > Why is cake trying to connect this to ImgController? How can I fix
> > this so that it will route to images_controller

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to