you have access from almost everywhere to:
$this->name // controller name (events)
$this->action // action name (view)

and several constants are in /cake/basics.php

On 9 août, 08:17, francky06l <[EMAIL PROTECTED]> wrote:
> You want to extract this from where, I mean, in a controller ?
> beforeFilter ?
>
> On Aug 9, 7:50 am, CakeMan <[EMAIL PROTECTED]> wrote:
>
> > Hello Friends,
>
> > do anyone has list of Contants in Cakephp. i have seen in the manul
> > but they will not do me good in my task.
>
> > What i need is :-
>
> > Suppose we have a URL such 
> > ashttp://mysite.com/insidecake/events/view/28/12/2016
>
> > i want to extract URL upto "http://mysite.com/insidecake/events"; how
> > can i achieve this.
>
> > I have used "FULL_BASE_URL" but i have got only "http://mysite.com";
> > other constants are not working such as $this->webroot, WWW_ROOT  etc.
>
> > Pls help.
>
> > Thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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