Thursday, December 30, 2010

Re: Url to action without action name

Hi,

Please have a look at http://book.cakephp.org/view/949/Passing-parameters-to-action, hope this helps.

Amit Badkas

PHP Applications for E-Biz: http://www.sanisoft.com



On Thu, Dec 30, 2010 at 3:15 PM, talisker <ofranquesa@gmail.com> wrote:
Hello!

I need just this: go directy to an action without the action name on
the url, like this example:

www.example.com/news/read/2-hello_world_is_dying

to

www.example.com/news/2-hello_world_is_dying

I tried to achieve this adding this route on routes.php:

Router::Connect('/news/:id-:slug', array ('controller' => 'news',
'action' => 'read'), ...

I thought defining this route, the inverse routing would make these
desired url's but... not!

Help, please?




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+unsubscribe@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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate