In the view, $this->here
http://api.cakephp.org/class/view

In the controller, $this->base and $this->action
http://api.cakephp.org/class/controller

On Fri, Jul 9, 2010 at 6:44 PM, saidbakr <[email protected]> wrote:
> Hi,
>
> Is there any method to get the current URL of the application, either
> from view or the controller?
>
> For example:
> suppose we are at the follwoing url of the application
> http://mysite.com/posts/view/12
>
> I want to get this url?
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to [email protected]
> 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
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
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