2010/10/27 Gustavo Adrian <[email protected]>:
> You could write a filter so on the very first request, you load the data you
> need on the user's session.

I tried the same with my "init" component. It worked fine for
authenticated users. There was a problem with normal visitor.

Maybe I did something wrong?

>
> 2010/10/27 Michał Piotrowski <[email protected]>
>>
>> Hi,
>>
>> I've got a layout:
>>
>> [some html]
>> [some php]
>> <?php include_component('foo', 'foo1') ?>
>> <?php include_component('foo', 'foo2') ?>
>> [some html]
>> <?php include_component('foo', 'foo3') ?>
>> [some random code]
>>
>> The problem is that all components needs some user data. I've got an
>> user settings table and I need to SELECT the same user data in each
>> component.
>>
>> As a result of such br00ken design sometimes I need to SELECT the same
>> data three, four times (sometimes in action).
>>
>> I tried to write an init component that fetches all data and stores it
>> in as session variables, but this works only for authenticated users.
>>
>> Is there a way to store variable in component that would be visible
>> for other components and for action?
>>
>> Best regards,
>> Michal
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to
>> security at symfony-project.com
>>
>> You received this message because you are subscribed to the Google
>> Groups "symfony users" 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/symfony-users?hl=en
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" 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/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" 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/symfony-users?hl=en

Reply via email to