I think what you want to do is make use of slugs. Your categories are not set by you in development, right? They are editable by whoever administers the application, right? In that case, creating manual routes for each category becomes very messy.
I suggest you look at sluggable behavior. http://bakery.cakephp.org/articles/view/sluggable-behavior http://cake-syrup.sourceforge.net/ingredients/sluggable-behavior/ /Martin On Mar 3, 7:28 pm, majna <[email protected]> wrote: > Router::connect('/flower.html', array( 'controller'=>'categories', > 'action' => 'categoryindex', 70)); > Try nowhttp://www.example.com/flower.html > > On Mar 3, 3:54 pm, Sensible <[email protected]> wrote: > > > Hi, > > > I want help on routing. > > > I want my url with .html extension. Is it possible. > > > Currently my url :http://www.example.com/Categories/categoryindex/70 > > > Controller:Categories > > Action: categoryindex > > category_id: 70 (Which is flower) > > > But i want my url to be look like: > > >http://www.example.com/flower.html > > > or any other possible solution with flower.html > > > Thanks In Advance. > > Waiting for reply. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
