Routing to a different URLs based on post type
- by DanCake
What would be the best way to set up my routes so different types of posts have different URLs?
For example, regular posts are /posts/slug while featured posts are /featured/slug
Both link to the same controller and action /posts/view/slug.
I experimented with different ways of doing this but with little success. Currently my link params look something like the following:
array('controller' => 'posts', 'action' => 'view', 'featured' ,$post['Post']['slug'])