Re: [Maypole] how can I get the third part of the path ?

From: Simon Flack (sf at flacks.net)
Date: Tue Sep 21 2004 - 18:16:39 BST


On Tue, 21 Sep 2004 18:36:13 +0300 (IDT), Gabor Szabo wrote
> Thanks for the suggestions.
> For now I fetch the path_info using this
>
> my $path_info = $r->{cgi}->path_info;
>
> and the cut it into pieces to get the third part of the path.

A more portable method of getting the maypole request path would be:
    $r->{path};

As I mentioned in a previous post, third part of the path is either:
    $r->objects->[0]->$id;
    (where $id = $r->objects->[0]->primary_column->name)

or
    $r->{args}[0];

--simonflk

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT