[symfony-users] Symfony's cache caches my sfDoctrineGuard auth pages... WTF.

2010-05-04 Thread theredled
Hi, I have an URI foo/bar?baz=1 that requires authentication, AND which result must be cached. The result is : the cached result is the authentication page. How ironic... Do you know what can be the origin of this problem ? Thanks all. -- If you want to report a vulnerability issue on

[symfony-users] Re: Symfony's cache caches my sfDoctrineGuard auth pages... WTF.

2010-05-04 Thread theredled
Too Bad... Thanks. I'll look for a solution. On May 4, 11:16 am, Michał Piotrowski mkkp...@gmail.com wrote: Hi, 2010/5/4 theredled benoit.guc...@gmail.com: Hi, I have an URI foo/bar?baz=1 that requires authentication, AND which result must be cached. The result is : the cached

[symfony-users] Re: Symfony's cache caches my sfDoctrineGuard auth pages... WTF.

2010-05-04 Thread theredled
, theredled benoit.guc...@gmail.com wrote: Too Bad... Thanks. I'll look for a solution. On May 4, 11:16 am, Michał Piotrowski mkkp...@gmail.com wrote: Hi, 2010/5/4 theredled benoit.guc...@gmail.com: Hi, I have an URI foo/bar?baz=1 that requires authentication, AND which result

[symfony-users] Re: Symfony's cache caches my sfDoctrineGuard auth pages... WTF.

2010-05-04 Thread theredled
, theredled benoit.guc...@gmail.com wrote: Too Bad... Thanks. I'll look for a solution. On May 4, 11:16 am, Michał Piotrowski mkkp...@gmail.com wrote: Hi, 2010/5/4 theredled benoit.guc...@gmail.com: Hi, I have an URI foo/bar?baz=1 that requires authentication, AND which result

[symfony-users] Re: Symfony's cache caches my sfDoctrineGuard auth pages... WTF.

2010-05-04 Thread theredled
And of course, change your security line in filters.yml to : security: class: MyBasicSecurityFilter On May 4, 12:41 pm, theredled benoit.guc...@gmail.com wrote: Found a solution : - make a MyBasicSecurityFilter that overrides sfBasicSecurityFilter - override each forwardTo***Action

[symfony-users] Re: Symfony 2 + Doctrine 2 : what about behaviours ?

2010-03-10 Thread theredled
in Doctrine 2, however it's not stable to release yet since the Doctrine codebase keeps changing :) On Mar 8, 3:35 pm, theredled benoit.guc...@gmail.com wrote: Hi, Behaviours feature will be removed from Doctrine 2. As they are part of the domain classes, now separated from the ORM

[symfony-users] Symfony 2 + Doctrine 2 : what about behaviours ?

2010-03-08 Thread theredled
Hi, Behaviours feature will be removed from Doctrine 2. As they are part of the domain classes, now separated from the ORM itself, they are no more part of Doctrine's job. That's a good reason. But this feature was really useful to enhance reusability. So if it is not part of the job of an ORM,

[symfony-users] Re: Getting all errors, translated, as an array

2009-12-07 Thread theredled
I do this to get form errors to an array, and i18n works : $fields_errors = array(); $global_errors = array(); foreach ($form as $key = $field) if ($field-getError()) $fields_errors[$key] = $field-getError()-getMessage(); foreach ($form-getGlobalErrors() as $err)

[symfony-users] Re: optimizing symfony admin generator

2009-12-04 Thread theredled
This gives basis for customizing (yml, overriding templates, themes, generator inheritance): http://www.symfony-project.org/book/1_2/14-Generators#Administration For the rest, there is just you and your head in the engine :D Not so much doc. On 3 déc, 11:22, Lukas Kahwe Smith

[symfony-users] Re: optimizing symfony admin generator

2009-12-04 Thread theredled
And that : http://www.symfony-project.org/reference/1_4/en/ By optimizing, i hope you were not speaking of performance ? On 3 déc, 11:22, Lukas Kahwe Smith m...@pooteeweet.org wrote: Hi, I am aware that there are guides for optimizing symfony application in generally. However, are there

[symfony-users] Admin Generator Custom themes : is it possible to override only a few templates ?

2009-12-02 Thread theredled
Hi, In The Definitive Guide, it is written that Admin Generator Themes are overridable *file by file* : you can bootstrap a new theme by copying the files you want to override from the default theme But it seems that it's not the case anymore : I've created a theme, but only theme files are

[symfony-users] Re: Admin Generator Custom themes : is it possible to override only a few templates ?

2009-12-02 Thread theredled
(something like it). Just generate the first time the module by going to the generated page in your browser. Am I clear enough ? Does it fill your needs ? 2009/12/2 theredled benoit.guc...@gmail.com Hi, In The Definitive Guide, it is written that Admin Generator Themes are overridable

[symfony-users] Performance : sfSuperCachePlugin, sfOptimizerPlugin - Where are they now ?

2009-11-16 Thread theredled
Hi, I was reading Performance chapter of the definitive guide for Symfony 1.2 ( http://www.symfony-project.org/book/1_2/18-Performance ) In opposition to what is said there, sfSuperCachePlugin and sfOptimizerPlugin are not available anymore for Symfony 1.2. So the question is : why ? Is

[symfony-users] Performance : sfSuperCachePlugin, sfOptimizerPlugin - Where are they now ?

2009-11-16 Thread theredled
Hi, I was reading Performance chapter of the definitive guide for Symfony 1.2 ( http://www.symfony-project.org/book/1_2/18-Performance ) In opposition to what is said there, sfSuperCachePlugin, sfOptimizerPlugin, sfErrorLoggerPlugin plugins, which seem very important for that part, are not

[symfony-users] Re: my solution for i18n forms

2009-11-16 Thread theredled
Why don't you just unset() unused fields in FirmForm and FirmTranslationForm ? On 9 nov, 10:42, dziobacz aaabbbcccda...@gmail.com wrote: Creating i18n forms with only some fields from table isn't possible so I give You my idea :) I have schema.yml: Firm:   actAs:     I18n:       fields:

[symfony-users] Re: Is Doctrine (database) Timer OK ?

2009-09-22 Thread theredled
Does anybody *NOT* have this problem, then ? :D On Sep 21, 6:36 pm, theredled dev2.bubbleb...@gmail.com wrote: Hi all, I have a page with 6 queries. Doctrine (database) Timer in the Debug Toolbar tells me those queries take 0.06 ms. Strangely fast... So I measured them myself and found

[symfony-users] Re: Analyse doctrine queries

2009-09-21 Thread theredled
Hi Klemens, The queries you're talking about come from Doctrine itself, and its lazy behaviour. For example, if you do sth like $albums = Doctrine::getTable('Album')-findAll();, it will only take all the rows from the table 'album'. Now if you do sth like '$artist_name = $album-Artist-name, it

[symfony-users] Is Doctrine (database) Timer OK ?

2009-09-21 Thread theredled
Hi all, I have a page with 6 queries. Doctrine (database) Timer in the Debug Toolbar tells me those queries take 0.06 ms. Strangely fast... So I measured them myself and found very different (and more usual) durations for each query : 5/10 ms. Does anybody have the same problem ? Is it a