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
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'
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
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
> 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