[symfony-users] saving embedded forms containing many to many relationships

2011-02-21 Thread l3ia-etu
Hello, when i save a form that have a list from a many to many relationships like OperationTechniqueSupplements : CommandeOperationTechnique: columns: commande_id: { type: integer , notnull: true} ot_id: { type: integer , notnull: true} quantite: { type: integer , notnull: true}

[symfony-users] saving embedded forms containing many to many relationships

2011-02-21 Thread l3ia-etu
Hello, when i save a form that have a list from a many to many relationships like OperationTechniqueSupplements : CommandeOperationTechnique: columns: commande_id: { type: integer , notnull: true} ot_id: { type: integer , notnull: true} quantite: { type: integer , notnull: true}

[symfony-users] Re: saving embedded forms containing many to many relationships

2011-02-21 Thread l3ia-etu
fév, 15:37, l3ia-etu emmanuel.tul...@gmail.com wrote: Hello, when i save a form that have a list from a many to many relationships like OperationTechniqueSupplements  : CommandeOperationTechnique:  columns:   commande_id: { type: integer , notnull: true}   ot_id: { type: integer , notnull

[symfony-users] Re: chekbox creating or not a line into a link table

2011-02-18 Thread l3ia-etu
', array_values($link)); but no line is created in CommandeOperationTechniqueSupplement is there another thing to do ? thanks On 17 fév, 18:40, l3ia-etu emmanuel.tul...@gmail.com wrote: Hello everyone, I have a link table: CommandeOperationTechniqueSupplement:  columns:   cot_id: { type: integer

[symfony-users] Re: chekbox creating or not a line into a link table

2011-02-18 Thread l3ia-etu
the checkbox is unchecked how to do this ? thanks On 18 fév, 12:16, l3ia-etu emmanuel.tul...@gmail.com wrote: well, i've added the relation into one of the table linked, like we can find into sfGuardUser with sfGroup (the link table is sfGuardUserGroup) CommandeOperationTechnique:  columns

[symfony-users] chekbox creating or not a line into a link table

2011-02-17 Thread l3ia-etu
Hello everyone, I have a link table: CommandeOperationTechniqueSupplement: columns: cot_id: { type: integer , notnull: true} ots_id: { type: integer , notnull: true} relations: CommandeOperationTechnique: { local: cot_id, onDelete: CASCADE } OperationTechniqueSupplement: { local: ots_id

[symfony-users] not escaping some html code in a template

2010-05-26 Thread l3ia-etu
Hello everyone, I would like to insert some html code in my template. in the doc we've got: Listing 7-44 - Activating Output Escaping, in myapp/config/ settings.yml all: .settings: escaping_strategy: both escaping_method: ESC_ENTITIES so putting escaping_strategy: off would

[symfony-users] Re: how to use Ajax with moduleForm in symfony 1.4

2010-05-26 Thread l3ia-etu
look up for the id of the selectbox, and in the onchange, call a javascript function, to make an ajax call. On 26 mai, 09:32, abbbassi abidi abbbassi.recrutemen...@gmail.com wrote: hi all, i ask  if some one know how to use ajax with class moduleNameForm, so i have two item (selectbox) and i

[symfony-users] Re: not escaping some html code in a template

2010-05-26 Thread l3ia-etu
-project.org/browser/branches/1.4/lib/escaper/sfOu... Regards, Benoit 2010/5/26 l3ia-etu emmanuel.tul...@gmail.com Hello everyone, I would like to insert some html code in my template. in the doc we've got: Listing 7-44 - Activating Output Escaping, in myapp/config/ settings.yml

[symfony-users] sfCaptchaGD plugin

2010-03-08 Thread l3ia-etu
Hello everyone, I would like to give some precision, for this plugin version 1.4.3, when using with symfony 1.4: - you have to create a file plugins/sfCaptchaGDPlugin/modules/ sfCaptchaGD/config/security.yml with: GetImage: is_secure: false false and NOT off !! - and put the params, into

[symfony-users] protection of a field

2010-02-04 Thread l3ia-etu
hi everyone, i've protected a form, setting readonly: if ( ! sfContext::getInstance()-getUser()-hasCredential('x')) { $this-widgetSchema['']- setAttribute('readonly','readonly');

[symfony-users] Re: generator.yml : disallow a field modification for a user that doesn't have a credential

2010-02-03 Thread l3ia-etu
that doesn't works: Fatal error: Can't use method return value in write context On 2 fév, 17:33, Tom Ptacnik to...@tomor.cz wrote: Try unset($this-validatorSchema['yourfild']); On 2 ún, 10:52, l3ia-etu emmanuel.tul...@gmail.com wrote: yes, that's good ! so, i will set the widget

[symfony-users] Re: generator.yml : disallow a field modification for a user that doesn't have a credential

2010-02-02 Thread l3ia-etu
:00 am, l3ia-etu emmanuel.tul...@gmail.com wrote: hi everyone, i would like to customize an edit action: i would like to disallow the modification of a field from user that has not a credential: i can disallow the edition of a field for all users: config:   form:     display

[symfony-users] generator.yml : disallow a field modification for a user that doesn't have a credential

2010-02-01 Thread l3ia-etu
hi everyone, i would like to customize an edit action: i would like to disallow the modification of a field from user that has not a credential: i can disallow the edition of a field for all users: config: form: display: NONE: [article_id] Editable: [author, content,

[symfony-users] have a confirmation password

2010-01-18 Thread l3ia-etu
Hi everyone ! I would like to confirm a username and password in a form (have 2 widget for the username, and 2 for the password, and test the equality): $this-useFields(array('username', 'password', 'profession_id')); $this-widgetSchema['confirmation_username']

[symfony-users] redirection in sfGuardPlugin or sfDoctrineGuardPlugin

2010-01-14 Thread l3ia-etu
hello, i would like the enduser, after logged on, go to the edit page of his profile: i've modified the file: plugins\sfDoctrineGuardPlugin\modules\sfGuardAuth\lib \BasesfGuardAuthActions.class.php public function executeSignin($request) .. //return $this-redirect('' !=

[symfony-users] Re: redirection in sfGuardPlugin or sfDoctrineGuardPlugin

2010-01-14 Thread l3ia-etu
('sfGuardUser')-find(array($request-getParameter('id'))), sprintf ('Object sf_guard_user does not exist (%s).', $request-getParameter ('id'))); On 14 jan, 16:55, l3ia-etu emmanuel.tul...@gmail.com wrote: hello, i would like the enduser, after logged on, go to the edit page of his profile: i've

[symfony-users] can't create a doctrine field like date_demande_OPT_IN

2010-01-13 Thread l3ia-etu
hi everyone, when listing, into the error is Unknown record property / related component date_demande_optin on Particulier but when i change the field from date_demande_OPT_IN to date_demande_opt_in into the schema.yml file, all is ok is it a bug ? -- You received this message because you

[symfony-users] sfWidgetFormDoctrineChoice

2010-01-07 Thread l3ia-etu
hello, i would like to change the widget: //$this-widgetSchema['type'] = new sfWidgetFormChoice(array ('choices' = Doctrine::getTable('JobeetJob')-getTypes(),'expanded' = true)); to have a combo box instead of radio buttons, so i use: $this-widgetSchema['type'] = new

[symfony-users] Re: question about sf jobeet tutorial Day 5 sfError404Exception

2009-12-18 Thread l3ia-etu
you must put the job's id after the module: http://jobeet.localhost/frontend_dev.php/job/1/... On 16 déc, 21:19, mars marsg...@gmail.com wrote: i followed the day 5 tutorial,  aftre change route to sfDoctrineRoute, i got the correct url format as specified in the