Alright trick question. Couldn't find the answer anywhere.

For some time I've been building and using a image script that allows
me to upload all kinds of random stuff. I use it to share those images
with my friends. I used to give those images a three letter shortcode
(eg. "djn") and made them accessible through example.com/djn. Another
feature is resizing, so I can use /djn/1024 to share 15 megapixel
images without forcing people to download it all. It's a thumbnail.
Since a few weeks, I've run out of shortcodes, so now I use 5 letters
("jaguq").

Other features are a gallery and an extended admin where I can see log
files and what not.

For a while I've wanted to rewrite this to Cake. What I can't find out
is how to redirect everything to one controller (it would be a Image
controller or something of the other) except when other controllers
are there.

So, to mimic the old behaviour, /xxx or /xxxxx (with of course /xxxxx/
200 and maybe more parameters) would always serve an image by its
shortcode (or a 404). / admin, /gallery, etc., would serve their
respective functions.

How could I do such a thing?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to