On 9/1/08, Dardo Sordi Bogado <dardosordi@gmail.com> wrote:
>
> Also, for reading session values use the session helper, avoid
> accessing controller/components in view, you certainly can push all de
> data from the controller to the view. I'm no MVC cop, but try to keep
> views clean.
>
> On Thu, Aug 28, 2008 at 4:14 AM, Bernhard J. M. Grün
> <Bernhard.Gruen@googlemail.com> wrote:
>>
>> Hi!
>>
>> This is quite easy. It is just
>> $account = $this->Session->read('Account');
>>
>>
>> On 28 Aug., 07:35, Pizgin <piz...@gmail.com> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment