Hi!
This is quite easy. It is just
$account = $this->Session->read('Account');
On 28 Aug., 07:35, Pizgin <[EMAIL PROTECTED]> wrote:
> Hi! Before was
>
> $account = $this->controller->Session->read('Account');
>
> On CakePHP 1.2.x this not work. Have error:
>
> Undefined property: View::$controller [APP/views/elements/cart.thtml,
> line 3]
>
> Tell me please how i can acces to controller component from the view?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---