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
我应该怎么设置文章控制器和/或为了实现这一目标的途径