Re: [Cppcms-users] Page handlers from configuration
Brought to you by:
artyom-beilis
|
From: Artyom B. <art...@ya...> - 2013-04-29 06:33:21
|
What do you mean?
- You mean what parameter was given?
The obvious
void loginpage(std::string url)
dispatcher().assing("/login,&server::loginpage,this,0);
- What regular expression was used?
For "reverse" path generation you can use
URL mapping (the opposite of dispatching).
- What is the full mapping path? You can use CGI variables:
request().path_info() to get the full path.
Artyom Beilis
--------------
CppCMS - C++ Web Framework: http://cppcms.com/
CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/
----- Original Message -----
> From: Saikumar Gandapodi <sai...@gm...>
> To: cpp...@li...
> Cc:
> Sent: Sunday, April 28, 2013 2:54 PM
> Subject: Re: [Cppcms-users] Page handlers from configuration
>
> If there is a mapping like this
>
> dispatcher().assign("/login", &Server::loginpage, this);
>
> Is possible to know the assigned path ( "login") at runtime from
> inside
> the loginpage() method ?
>
>
>
>
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
|