0
我有一個文章模型和一個類別模型,都帶有一個url_slug
變量(我想在URL中顯示時尋找它)。這裏是我如何擁有網址出現:與Kohana 3的定製嵌套路由
//list all of the articles
http://example.com/articles
//list of all the articles in that category
http://example.com/articles/:category_slug
//a single article.
http://example.com/articles/:category_slug/:article_slug
我應該怎麼設置文章控制器和/或爲了實現這一目標的途徑