Re: [Cppcms-users] url_dispatcher and routing
Brought to you by:
artyom-beilis
|
From: Artyom <art...@ya...> - 2011-04-26 13:09:57
|
>From: Andrew <an...@bu...>
>
>
>to mb::mb
>
>
>attach(newworkflows(s),
> "foobar",
> "/foobar/{1}",
> "/foobar/((/.*)?)",1);
>
>
>
>
>to foobar::foobar
>
>
>dispatcher().assign("/list/(\\d+)",&workflows::prepare,this,1);
>dispatcher().assign("/item/(\\d+)",&workflows::prepare,this,1);
>
>
>
>
>unfortunately I am getting a not found error.
>
"Not found error" does not give me any clue on what are you
talking about? Where the error? At what stage? in what situation?
>
>Ive tried a range of different entries, but I do not seem to be able to solve
>the problem.
>
More explicit?
>also I am interested in how url_mapper works, the reference talks about how to
>use it, but doesn't exaplin exactly what it is for.
>
I think this should give you an answer.
http://art-blog.no-ip.info/cppcms_ref_v0_99/classcppcms_1_1url__mapper.html#_details
If not... Make your question more explicitly, what do you not understand.
>
>thanks for any help :)
>
>
>- Andrew
Artyom
|