That would not work if you were in a dhandler eg

url was /foo/view.html

and was being handled by /foo/dhandler

I have been using "$r->uri" and have not had any problems so far.

Cheers,
Brett

Li Hao wrote:
> On 6/4/07, Anthony Ettinger <[EMAIL PROTECTED]> wrote:
>   
>> I want to flag a menu item as active based on the URL.
>>
>> Does anyone know how I access the value of the current url? ie
>> "/page/foo.html"
>>     
>
> I use this:
>
> my $uri = $m->request_comp->path;
>
> Regards,
> Hao
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Mason-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mason-users
>
>
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to