Re: How to get controller name from an element view?

2014-08-28 Thread Jipson Thomas
Thank you. I got it working by the following command. $this->request->params['controller'] Thanks, Jipson On Friday, 8 February 2008 19:30:35 UTC, Guill3rmo wrote: > > Hi im newbie and my English still sucks, but i want to know get the > controller name since an element view. Thanks. > -- Like

Re: How to get controller name from an element view?

2014-08-28 Thread Stephen S
I don't think you can use the request object from within an element, but here's the documentation on it. http://book.cakephp.org/3.0/en/controllers/request-response.html#request-parameters If you can't access it from the element you can save it as a variable in your AppController, though this isn'

Re: How to get controller name from an element view?

2014-08-28 Thread Jipson Thomas
Hi , I tried this solution to get controller name on my layout file, but I am getting an error on CakePHP3 as follows, *Error: * *paramsHelper* could not be found. IS there anyone know a proper solution for this? Regards, Jipson On Friday, 8 February 2008 19:30:35 UTC, Guill3rmo wrote: > > Hi i

Re: How to get controller name from an element view?

2008-02-09 Thread Guill3rmo
Thanks a lot, that´s what i was looking for. On 8 feb, 16:22, MonkeyGirl <[EMAIL PROTECTED]> wrote: > > Hi im newbie and my English still sucks, but i want to know get the > > controller name since an element view. Thanks. > > Try echoing out $this->params['controller'] - is that what you're > af

Re: How to get controller name from an element view?

2008-02-08 Thread MonkeyGirl
> Hi im newbie and my English still sucks, but i want to know get the > controller name since an element view. Thanks. Try echoing out $this->params['controller'] - is that what you're after? Hope that helps, Zoe. --~--~-~--~~~---~--~~ You received this message be