Thanks guys.

Dave

-----Original Message-----
From: Dr. Loboto [mailto:drlob...@gmail.com] 
Sent: August-16-10 4:10 AM
To: CakePHP
Subject: Re: Route question

<?php echo $this->Html->link(__('View', true), array('controller' =>
'galleries' , 'action' => 'view', 'gal_slug' => $gallery['Gallery']
['slug'])); ?>

On Aug 16, 8:02 am, "Dave Maharaj" <m...@davemaharaj.com> wrote:
> I have my gallery controller and each gallery has a slug so the url looks
> like gallery/fishing (if manually typed in)
>
> Routed like -> Router::connect('/gallery/:gal_slug',array('controller' =>
> 'galleries' , 'action' => 'view'), array( 'gal_slug' =>
> '[-_A-Za-z0-9]+','pass' => array('gal_slug' ) ) );
>
> Then in my gallery index.ctp I have <?php echo
$this->Html->link(__('View',
> true), array('controller' => 'galleries' , 'action' => 'view',
> $gallery['Gallery']['slug'])); ?> but the url when hover/clicked over the
> link shows "view" ->  gallery/view/fishing.
>
> How can I get it so it removes the "view" from the url?
>
> Thanks
>
> Dave

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

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