Re: [Cppcms-users] question about mapper
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-01-18 11:25:35
|
The key /number - starts searching from root of the application, and number starts searching from current location. See: http://art-blog.no-ip.info/cppcms_ref_v0_99/classcppcms_1_1url__mapper.html#_details Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.sf.net/ CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/ >________________________________ > From: Leon <le...@wl...> >To: cpp...@li... >Sent: Wednesday, January 18, 2012 12:51 PM >Subject: [Cppcms-users] question about mapper > >In the url_mapping example, the mapping is done with the following code: > mapper().assign("number","/number/{1}"); >Here the key is "number". > >Later, a url is constructed with: url("/number",1) >Here the key is "/number". > > >My question is that why the key parameter passed to url(...) is >"/number" not "number"? > > >Thanks in advance. > > >Best regards. > >------------------------------------------------------------------------------ >Keep Your Developer Skills Current with LearnDevNow! >The most comprehensive online learning library for Microsoft developers >is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >Metro Style Apps, more. Free future releases when you subscribe now! >http://p.sf.net/sfu/learndevnow-d2d >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |