Re: [Cppcms-users] Multiple level dispatching
Brought to you by:
artyom-beilis
|
From: SIMON A. <All...@su...> - 2013-08-02 03:27:56
|
Hi I'm doing the same things on Tatowiki https://github.com/allan-simon/tatowiki but I'm using add , instead of attach https://github.com/allan-simon/tatowiki/blob/master/app/src/TatoWiki.cpp add(articles,"^/articles(.*)",1); https://github.com/allan-simon/tatowiki/blob/master/app/src/controllers/webs/Articles.cpp for the code of Articles class Hope it helps Regards, Allan SIMON Tatoeba Administrator (Sysko) ________________________________________ De : Sab [rim...@gm...] Envoyé : mardi 30 juillet 2013 12:09 À : cpp...@li... Objet : [Cppcms-users] Multiple level dispatching Hi all, I'm trying to use multiple level dispatching and it seems to work for me different than the tutorials show. My request is GET myapp/Test/Settings. If I pass only "/Settings" to the dispatcher in the subclass, it doesn't get matched. It only works if I pass "/Test/Settings" to the dispatcher. Concretely: In my main class I have: attach(new TestHandler::TestHandler(srv), "/Test(/(.*))?",1); In my TestHandler class constructor I should have have: dispatcher().assign("/Settings", &TestHandler::ProcessSettings, this); but must have: dispatcher().assign("/Test/Settings", &TestHandler::ProcessSettings, this); to make it work. Am I doing something wrong? ------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |