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 <[email protected]> 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 <[email protected]> wrote: > >> Probably but then wouldn't that kind of defeat the purpose of using >> Cake? >> >> On Sep 23, 1:34 am, Vivi Vivi <[email protected]> wrote: >> > Maybe can be done within htaccess with rewrite rule. >> > >> > >> > >> > >> > >> > On Thu, Sep 23, 2010 at 8:28 AM, Kyle Decot <[email protected]> >> 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 [email protected] >> > > To unsubscribe from this group, send email to >> > > [email protected]<cake-php%[email protected]> >> <cake-php%[email protected] 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 [email protected] >> To unsubscribe from this group, send email to >> [email protected]<cake-php%[email protected]>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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
