Thanks, that will work.... any way to put 'product_slug' on $this-
>params['named']['product_slug'] ?



On 17 ago, 00:56, Andras Kende <and...@kende.com> wrote:
> Try somethign like:
>
> core/routes.php
>
> Router::connect('/area/:product_slug', array('controller'=> 'area', 'action' 
> => 'category'), array('pass' => array('product_slug')));
>
> controller:
>
> public function category() {
>         $product = $this->Area->find('first', array('recursive' => -1, 
> 'conditions' =>  array('Area.slug' => $this->params['product_slug'])));
>         var_dump($product);
>
> }
>
> Andras Kendehttp://www.kende.com
>
> On Aug 17, 2010, at 1:29 AM, Mateo San Román wrote:
>
> > Hello
>
> > I'm trying to route an URL like this :
>
> > /area/maize
>
> > to this
>
> > /area/product:maize
>
> > Is this possible?
>
> > Thanks in advance
>
> > 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 For more options, visit this group 
> > athttp://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