parse_url() would work well for this IF you could pass a full URL including
the anchor to it, but the HTTP request sent to the server does not include
the anchor.  

Javascripts in the view would have access to the location URL including the
anchor... so you could send that information to the server using Ajax and
then process it with parse_url() to identify the anchor.

-----Original Message-----
From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of nate
Sent: Wednesday, February 21, 2007 9:47 PM
To: Cake PHP
Subject: Re: Extracting Anchor string from URL


http://us2.php.net/parse_url

On Feb 21, 9:26 pm, "aranworld" <[EMAIL PROTECTED]> wrote:
> I am familiar with CakePHP's $params array which can give me the GET
> values from a URL.
>
> However, does CakePHP keep track of the "anchor" text in a URL?
>
> For example, if my URL is:
>
> http://www.usa.gov/billofrights/#amend10
>
> Referring to the in-page anchor named "amend10", can I access this
> information anywhere from withint CakePHP?
>
> It doesn't appear as if the $params array keeps track of this
> information.






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to