Can you use routing for image directories?
 
I have a link to an image that goes to
site.com/img/entries/gal/c990042505a.jpg but I would like the URL to be
site/gallery/c990042505a.jpg and route that to
site.com/img/entries/gal/c990042505a.jpg

I have Router::connect('/gallery/:filename/',array('url' =>
'/img/entries/gal/'),array('filename' => '[-_A-Za-z0-9]+','pass' =>
array('filename')));

But cant seem to get the link to work

<?php
      echo $html->link($html->image('entries/thumb/' . $entry['image'],
array('class' => 'slide_thumb')), '/gallery/'. $entry['image'] ,
array('class' => 'group', 'rel' => 'group_' . $showcase['title']), null,
array('escape' => false));
?>

Is this even possible?
 
Dave 


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to