From: Caleb Cushing Date: Thu, 9 Jun 2011 20:35:49 +0000 (-0500) Subject: give an example for $c->request->path X-Git-Tag: 5.80033~12 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=be6801fa7f6a09cc5fa263fca705bbaa6b3f8808 give an example for $c->request->path Signed-off-by: Caleb Cushing --- diff --git a/lib/Catalyst/Request.pm b/lib/Catalyst/Request.pm index 9a7650d..c058daa 100644 --- a/lib/Catalyst/Request.pm +++ b/lib/Catalyst/Request.pm @@ -427,6 +427,10 @@ Shortcut for $req->parameters. Returns the path, i.e. the part of the URI after $req->base, for the current request. + http://localhost/path/foo + + $c->request->path will contain 'path/foo' + =head2 $req->path_info Alias for path, added for compatibility with L.