Re: constants issue
You can use FULL_BASE_URL.'/'.APP.'/'.$this->name; in controller that should make it .. I use often FULL_BASE_URL..$html- >url('Controller') in view ... Actually do you want to extract this from some variable, or set it ? On Aug 9, 9:18 am, CakeMan <[EMAIL PROTECTED]> wrote: > Thanks francky for your reply, > > I want to extract it from the controller and wants to use in the View. > or directly from the view. > > On Aug 9, 11:17 am, 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- Hide quoted text - > > > - Show quoted text - --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: constants issue
Thanks francky for your reply, I want to extract it from the controller and wants to use in the View. or directly from the view. On Aug 9, 11:17 am, 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- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: constants issue
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 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 -~--~~~~--~~--~--~---
Re: constants issue
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 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 -~--~~~~--~~--~--~---
constants issue
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 as http://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 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 -~--~~~~--~~--~--~---