[symfony-users] [Symfony2] Form and $attributes

2011-06-23 Thread Grégoire
Hi, I'd really like writing somthing like: foreach ($form as $name=>$field) { if ($field->hasErrors()) $field->setAttribute("attr", array("class" => "error")); } But I can't because setAttribute is not implemented in the * Symfony\Component\Form\Form* class (and $attributes is private).

[symfony-users] [Symfony2] Theming embedded form

2011-06-22 Thread Grégoire
Hi, I'm currently working with addresses which are frequently reused through my application. That's why I would like to reuse the piece of forms that can render the Address related fields, so I decided to embed the AddressType form in other forms. Now I would like to customize theming for the A

[symfony-users] Mapping relationnal fields with sub-object property

2011-06-17 Thread Grégoire
Hi, I was wondering if there is a native way to map relationnal fields to entity's sub'object properties. For example, with an entity Customer, can I deal with $customer- >address, where address is an instance of Address, and map the properties of my address directly with columns of my database,

[symfony-users] Re: Forms & Entities with Association Mappings

2011-06-17 Thread Grégoire
I think you should create a separate form for Address entity and embed it in the user form, see http://symfony.com/doc/current/book/forms.html#embedded-forms On 16 juin, 19:31, Aaron DM wrote: > Hello, > > I was wondering how I would accomplish this. > > I want to create a single FormType for th

[symfony-users] sfWidgetFormJQueryAutocompleter for a text filter

2011-01-31 Thread Grégoire
I have a simple form filter on a class of my model with a "title" field, and I'd like to use sfWidgetFormJQueryAutocompleter for this text field, in my filter. So I first tried to simply set this widget for this field. It looked good but actually the filter didn't work. The reason is that the html

[symfony-users] ysfDimensionsPlugin and sfDoctrineGuardPlugin together

2011-01-26 Thread Grégoire
I use ysfDimensionsPlugin for a project I'm developing, and I'd like to add sfDoctrineGuardPlugin to secure my application. My aim would be to use a different database for sfGuard for each dimension. For dimension "test1", all the sfGuard stuff would be stored in my database connection called "db1

[symfony-users] Re: gmail problem

2009-12-01 Thread Grégoire
Edit your membership... http://groups.google.com/group/symfony-users/subscribe On Dec 1, 8:57 am, Ben Akacha Khalil wrote: > How can I block mail symfony group because I always suppime the mail > received? -- You received this message because you are subscribed to the Google Groups "symfony us

[symfony-users] Problem with the new pager Iterator interface

2009-12-01 Thread Grégoire
I use the sfDoctrinePager class to paginate results. I've seen in the 1.3/1.4 what's new article that the pagers now implement the Iterator and Countable interfaces. I say "cool, let's try it" so I did that: ... ... The count() function works fine, but the foreach() doesn't. The

[symfony-users] Re: sfWidgetFormDoctrineChoiceMany - how can I set default value ?

2009-11-26 Thread Grégoire
Have you tried this? $this->setDefaults(array( 'authors_list' => array(2) )); On 26 nov, 16:31, dziobacz wrote: > I have tables: Books, BooksAuthors, Authors. I use > sfWidgetFormDoctrineChoiceMany and I want that default author was > author with id = 2 but I can't do that. The default author

[symfony-users] Adding tabindex to expanded multiple choice fields

2009-11-26 Thread Grégoire
Hi, I'm on symfony 1.3. I have form that several fields. One of these fields is a sfWidgetFormDoctrineChoice widget, with 'multiple' and 'expanded' options set to 'on'. So checkboxes are displayed. I want to add a tabindex attribute to my field, so I tried this: $my_widget->setAttribute('tabinde

[symfony-users] sf 1.3 mailer factories : spool + single_address strategies impossible?

2009-10-30 Thread Grégoire
Hi all, I'm upgrading my project to sf 1.3 and I'm trying to configure the SwiftMailer. I want to use the spool system, so here is my factories.yml: all: mailer: class: sfMailer param: logging: %SF_LOGGING_ENABLED% charset: %SF_CHARSET% delivery_st

[symfony-users] Re: Disabling component cache dynamically

2009-10-21 Thread Grégoire
I have another way, cleaner but not clean... I remove the cache of the component with its sf_cache_key before each call to this instance of the component. It works, while waiting for the ultimate solution. On Oct 20, 3:30 pm, Grégoire wrote: > I can't find a way to solve that issue...

[symfony-users] Re: Disabling component cache dynamically

2009-10-20 Thread Grégoire
I can't find a way to solve that issue... Nobody has any suggestion/idea? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To u

[symfony-users] Re: Disabling component cache dynamically

2009-10-16 Thread Grégoire
That's what I do for the cached instances. But for the non-cached one, if I do that, it will be cached even if I don't give a key in its parameters, symfony will generate one. On Oct 16, 4:20 pm, Eno wrote: > Yeah: you generate your own keys (i.e. NOT random) for each version except > the one yo

[symfony-users] Disabling component cache dynamically

2009-10-16 Thread Grégoire
Hi all, I have a cached component in my sf 1.2 application. I include it several times on my page, with different parameters. I'd like to disable the cache for one of these component instances. I've found a first solution that doesn't satisfy me: I call the include_component() function with a ra

[symfony-users] Re: Component cache and authenticated user

2009-10-14 Thread Grégoire
Perfect, it's just what I need, and it works :) Thanks a lot Eno! On 14 oct, 18:12, Eno wrote: > On Wed, 14 Oct 2009, Greg wrote: > > It sounds perfect, but I can't find how to set this key... Is it in my > > cache.yml file? > > If you are caching a partial, then you can include the key in the >

[symfony-users] Component cache and authenticated user

2009-10-14 Thread Grégoire
Hi all, I'm using sf 1.2 and I've got a component on my web page that retrieves some RSS feed data and displays it (using sfFeed2Plugin). I don't want my server to do an http request on each page load, so I cached my component, with the layout. It works fine, but I've noticed a strange behavior:

[symfony-users] CSRF token required on login form when session times out

2009-08-11 Thread Grégoire
Hi, I've got a problem with my login form that occurs only after a session timeout when I was on a form, posting data. My application has global CSRF protection. The facts are these... 1. I log in successfully. 2. I go to a page with a form (that is csrf protected). This action is "secure"

[symfony-users] Re: Debian Package for 1.1

2008-08-19 Thread Grégoire Hubert
Hello, It sounds it is time to expose here where we are with the Debian integration process. Debian users know I am still "in charge" of the unofficial package hosted on the symfony repository (and yes, it is still the 1.0.17). Martin Meredith proposed himself to be the official Debian maintain

[symfony-users] Re: Client side validation and custom validators

2008-06-26 Thread Grégoire
d to return a boolean for the status of the form input. > > Regards > > Alistair > > 2008/6/26 Grégoire <[EMAIL PROTECTED]>: > > > > > > > Hi, > > > I'm using symfony 1.0. I'd like to validate my create user form in > > client side.

[symfony-users] Client side validation and custom validators

2008-06-26 Thread Grégoire
Hi, I'm using symfony 1.0. I'd like to validate my create user form in client side. I've found plugins on the wiki, but they only work with yaml validation files. But I have custom validators, for example: I check that the email isn't already used by a _validated_ user, that kind of stuff... I c

[symfony-users] Re: Rich date field is diabled when using AJAX

2008-05-29 Thread Grégoire Marchal
ok, it's a strange behavior, but it works! thanks a lot :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe fro

[symfony-users] Re: Rich date field is diabled when using AJAX

2008-05-29 Thread Grégoire Marchal
<[EMAIL PROTECTED]> wrote: > On 29 May 2008, at 14:12, Grégoire wrote: > > > > > echo object_input_date_tag ($user, 'getDob', 'rich=true'); > > > I want the form to be displayed in a DIV, loaded with AJAX. But when I > > do that, the

[symfony-users] Rich date field is diabled when using AJAX

2008-05-29 Thread Grégoire
Hi, I want my users to be able to set and modify their date of birth. So I use this function: echo object_input_date_tag ($user, 'getDob', 'rich=true'); I want the form to be displayed in a DIV, loaded with AJAX. But when I do that, the button next to the field, which is supposed to display the

[symfony-users] Re: Accessing DB in unit test using Lime

2008-04-30 Thread Grégoire
I've finally found a solution: use the sfModelTestPlugin plug-in http://trac.symfony-project.com/wiki/sfModelTestPlugin it's simple... and it works! :) On 30 avr, 11:17, Grégoire <[EMAIL PROTECTED]> wrote: > Thank you for your answer. > Unfortunately, I

[symfony-users] Re: Accessing DB in unit test using Lime

2008-04-30 Thread Grégoire
iault" <[EMAIL PROTECTED]> wrote: > On Wed, Apr 30, 2008 at 10:56 AM, Grégoire <[EMAIL PROTECTED]> wrote: > > I'm trying to accessing to my database in a unit test. I use Lime for > > those tests. I have the following exception when I execute my test : > >

[symfony-users] Accessing DB in unit test using Lime

2008-04-30 Thread Grégoire
Hi, I'm trying to accessing to my database in a unit test. I use Lime for those tests. I have the following exception when I execute my test : [PropelException] No connection params set for propel I think I've included all the needed... Here is my code : initialize(); // Initialize the test

[symfony-users] Re: Documentation bug

2007-11-05 Thread Grégoire Hubert
on to explain that it is > not a working example and it should not be used by anyone. The way to > fix the example would be to verify that the cookie value is set to the > correct nonce, or to the correct salted hash of a user property. > > -- chad > > > > > -- -- Grég

[symfony-users] Re: Use of APC in symfony

2007-11-02 Thread Grégoire Hubert
ested to know if that fixed the problem :o) Thank you for your feedback. -- Grégoire HUBERT Project Manager - Sensio labs http://www.sensiolabs.com/ http://www.symfony-project.com/ Sensio Labs Tél: +33 1 40 99 80 80 > Marco Schierhorn wrote: > > Thanks for your fast response. > &g

[symfony-users] Re: Unoffical SVN mirror

2007-10-03 Thread Grégoire Hubert
Should be definitely fixed now. -- Grégoire HUBERT Project Manager - Sensio labs http://www.sensiolabs.com/ http://www.symfony-project.com/ Sensio Labs Tél: +33 1 40 99 80 80 --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[symfony-users] Re: Unoffical SVN mirror

2007-10-03 Thread Grégoire Hubert
On 10/3/07, Nicolas Perriault <[EMAIL PROTECTED]> wrote: > 2007/10/3, Grégoire Hubert <[EMAIL PROTECTED]>: > > > Please let us know if you still experience troubles with the official > > subversion repository. > > This evening, updating from the official repo

[symfony-users] Re: Unoffical SVN mirror

2007-10-03 Thread Grégoire Hubert
with giving time and ressources. -- Grégoire HUBERT Project Manager - Sensio labs http://www.sensiolabs.com/ http://www.symfony-project.com/ Sensio Labs Tél: +33 1 40 99 80 80 On 10/1/07, Grégoire Hubert <[EMAIL PROTECTED]> wrote: > Hi ! > > It seems the webserver hangs on SVN

[symfony-users] Re: Unoffical SVN mirror

2007-10-01 Thread Grégoire Hubert
Hi ! It seems the webserver hangs on SVN request. It did occur hours after the migration last friday. The issue is still here, we are working on it. This might be fixed in the hours to come. We will let you know as soon as it is repaired. Grégoire

[symfony-users] Re: We are migrating the symfony website...

2007-09-28 Thread Grégoire Hubert
now. > > Thanks for your work :) > > On Sep 28, 8:40 pm, "Grégoire Hubert" <[EMAIL PROTECTED]> wrote: > > On 9/28/07, Tamcy <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hello! > > > > > Yes - I see plain HTML i

[symfony-users] Re: We are migrating the symfony website...

2007-09-28 Thread Grégoire Hubert
we have migrated to a new server. Hope this will > > serve the community better. If you spot any issue, please let us know > > so we could fix it quickly. > > > > Thank you. > > > > Grégoire. > > > > > > > > > On 9/28/07, Fabie

[symfony-users] Re: We are migrating the symfony website...

2007-09-28 Thread Grégoire Hubert
fix it quickly. Thank you. Grégoire. > > On 9/28/07, Fabien POTENCIER < > [EMAIL PROTECTED]> wrote: > > > > We are migrating the symfony websites to a new server. > > > > Please be patient as we need to migrate the subversion repository, the > >

[symfony-users] Re: Doctrine::export... depracted?

2007-09-07 Thread Grégoire Hubert
Could you please post the error if there is any ? We are going to test it here also. Regards, Grégoire. On 9/7/07, Jonas Schnelli <[EMAIL PROTECTED]> wrote: > > hi all > > after a long break i try to maintain a symfony / doctrine project. > with sf1.0.7 and current doctr

[symfony-users] Re: Database creation and modification to be improved in 1.1?

2007-09-06 Thread Grégoire Hubert
Have you tryed to export your data as fixtures with a symfony propel-dump-data app_name file_name Change your schema, change your fixtures and reload the whole lot ? I would still do a backup prior to the operation ;o) On 9/7/07, rihad <[EMAIL PROTECTED]> wrote: > > +1 > > On Sep 7, 5:19 am,

[symfony-users] Re: How to enable Gzip using symfony ?

2007-09-03 Thread Grégoire Hubert
You can directly tell Apache to compress its response by adding AddOutputFilterByType DEFLATE text/html text/plain text/xml in your configuration assuming you have mod_deflate installed. On 9/3/07, Alexander Deruwe <[EMAIL PROTECTED]> wrote: > > On 03 Sep 2007, at 17:04, rbawaskar wrote: > > A

[symfony-users] Re: Customize error 500 page for several applications

2007-08-31 Thread Grégoire Hubert
A symlink to a centralized error500 page should also work. On 8/30/07, David Brewer <[EMAIL PROTECTED]> wrote: > > This is a good question; I just ran into exactly the same issue. > > Here are the details of how this appears to work currently. You can > customize the error500.php page for your p

[symfony-users] Re: Weird problem with caching

2007-08-28 Thread Grégoire Hubert
On 8/28/07, Eno <[EMAIL PROTECTED]> wrote: > > Any idea what causes this: > > Notice: Array to string conversion in /usr/local/lib/php/symfony/util/ > sfToolkit.class.php on line 329 What version of symfony are you using ? I have seen such an issue in pre 1.0 releases...

[symfony-users] Re: Mail alert when error occur on prod env.

2007-08-24 Thread Grégoire Hubert
On 8/23/07, Romain <[EMAIL PROTECTED]> wrote: > > Hi, > > Maybe you can configure the redirect404 page on an action that send > the mail ? > > On Aug 22, 6:55 pm, Nicolas CHARLOT <[EMAIL PROTECTED]> wrote: > > Hi, > > Sorry If it's already a posted question, but I haven't found something > > abou