Re: how to get controller object in my layout when using cakaphp 1.2

2008-07-10 Thread Jonathan Snook
On 7/10/08, babar <[EMAIL PROTECTED]> wrote: > I had converted my application into cakephp 1 to cakephp 1.2, in > cakephp 1 i can get the controller object and calling function like > this calling $this->controller->H2Auth->getPracticeName(), now here > in cakephp 1.2 when i do this i get

Re: how to get controller object in my layout when using cakaphp 1.2

2008-07-10 Thread Siebren Bakker
$this->params['controller'] should be able to get the name of the controller for you :-P Hope that's what your looking for! Good luck! In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) On Thu, Jul 10, 2008 at 05:57, babar <[EMAIL PROTECTED]> wrote: > >

how to get controller object in my layout when using cakaphp 1.2

2008-07-10 Thread babar
Hi I had converted my application into cakephp 1 to cakephp 1.2, in cakephp 1 i can get the controller object and calling function like this calling $this->controller->H2Auth->getPracticeName(), now here in cakephp 1.2 when i do this i get the message Undefined property: View::$controller [AP