2010年10月22日星期五

Re: [fw-mvc] about Routes

That is not okay at all. Use an :id token in the pattern and you could
reduce all of that into one route.

-- Mon


On Sat, Oct 23, 2010 at 9:01 AM, Expertics <expertics@gmail.com> wrote:

> Hi,
>
> I have 3000 definitions in my config.ini .
>
> routes.cates1.route = "list1/:page"
> routes.cates1.defaults.module = "default"
> routes.cates1.defaults.controller = "list"
> routes.cates1.defaults.action = "index"
> routes.cates1.defaults.id = 1
> routes.cates1.defaults.page = 1
> routes.cates1.reqs.page = "\d+"
>
> ....
> ....
>
> routes.cates3000.route = "list3000/:page"
> routes.cates3000.defaults.module = "default"
> routes.cates3000.defaults.controller = "list"
> routes.cates3000.defaults.action = "index"
> routes.cates3000.defaults.id = 3000
> routes.cates3000.defaults.page = 3000
> routes.cates3000.reqs.page = "\d+"
>
>
> I think my web site (it isn´t production) is slower than before. This is
> Okay or I need other solution.
>
> bye
>
>
> George
>
>

没有评论: