hi, i m developing my own blog application using cakephp and need some help with routes.
for example, i have 3 categories: cakephp, jquery, and css. and i have one article (post) associated to each of those categories. i want the urls to be like this: 1. http://mysite.com/archives/{category}/ this will be the category page i want this url point to Category controller's View method. example: mysite.com/archives/cakephp/ 2. http://mysite.com/archives/{category}/{post} this is the article page. i want this url point to Post controller's View method. example: mysite.com/archives/cakephp/how-to-set-up-cake/ is it at all possible to do from routes.php? this is what i tried (i knew it wouldnt work): Router::connect('/archives/*', array('controller' => 'categories', 'action' => 'view')); Router::connect('/archives/*/*', array('controller' => 'posts', 'action' => 'view')); // notice two * thanks :) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
