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 the message Undefined property: > View::$controller [APP\views\layouts\default.thtml], how can i get the > controler object in my layouts so that i can call functions from there > Waiting 4 a good solution
To be more MVC, I think you should use the AppController to pull out the data and $this->set it for the view. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---