If you're okay with going the long way, you can setup a route for each
of your actions, i.e.:

Router::connect('/articles/index/*', array('controller' => 'articles',
'action' => 'index'));
Router::connect('/articles/view/*', array('controller' => 'articles',
'action' => 'view'));
etc...
then, you can add one for anything that doesn't match any of the
actions:
Router::connect('/articles/*', array('controller' => 'articles',
'action' => 'view'));

Then you can accept the title slug as a parameter to your view action.

That's the long way.  If you're more experienced with regular
expressions you can make it shorter, but I'm too tired to explain that
part.  I will be doing more work on the Router this weekend to make
these setups a easier, so if you can wait till then, great.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to