maybe this help you http://bakery.cakephp.org/articles/view/cakephp-s-routing-explained
On Thu, Sep 23, 2010 at 11:23 AM, Vivi Vivi <vivianbog...@gmail.com> wrote: > No, > You can mix them and get better results. From my point of view it's much > easier to put some rules into .htaccess and after treat them into routes.php > > But we can made a controller to treat the images. > > in route.php add Router::connect("/img/*", array('controller' => 'image', > 'action'=>'some action')); > > And in the controller make what you want. The controller is called only if > the image doesn't exist. > > > > On Thu, Sep 23, 2010 at 10:16 AM, Kyle Decot <kyle.de...@gmail.com> wrote: > >> Probably but then wouldn't that kind of defeat the purpose of using >> Cake? >> >> On Sep 23, 1:34 am, Vivi Vivi <vivianbog...@gmail.com> wrote: >> > Maybe can be done within htaccess with rewrite rule. >> > >> > >> > >> > >> > >> > On Thu, Sep 23, 2010 at 8:28 AM, Kyle Decot <kyle.de...@gmail.com> >> wrote: >> > > I've tried the following w/ no success >> > >> > > Router::connect('/:model/:size\_:filename.:extension', >> > > array('controller' => 'images', 'action' => 'server'),array( >> > > 'model'=>'(blog|event|users)+', >> > > 'size'=>'(t|m|l|o){1,1}', >> > > 'filename'=>'[a-zA-Z0-9]+', >> > > 'extension'=>'.(gif|png|jpg){3,3}', >> > > )); >> > >> > > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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<cake-php%2bunsubscr...@googlegroups.com> >> <cake-php%2bunsubscr...@googlegroups.c om>For more options, visit this >> group at >> > >http://groups.google.com/group/cake-php?hl=en >> > >> > -- >> > Vivihttp://photos.vr-3d.net >> >> 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<cake-php%2bunsubscr...@googlegroups.com>For >> more options, visit this group at >> http://groups.google.com/group/cake-php?hl=en >> > > > > -- > Vivi > http://photos.vr-3d.net > -- Vivi http://photos.vr-3d.net 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