AW: [symfony-users] embeding form by ajax
Not sure, if I understood correctly but maybe you are searching for something, I have done: I have an internationalized form and do not want to embed all i18n forms at the same time. So I added a small ajax form that allows user to select the language he wants to edit. By using a dropdown list, the language selector sends an ajax request to the action and thus embeds the requested language into the form dynamically. Most of the stuff, you will find in the Jobbeet Ajax Chapter. Regards, Christopher. -Ursprüngliche Nachricht- Von: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] Im Auftrag von Belgacem TLILI Gesendet: Dienstag, 30. März 2010 23:23 An: symfony users Betreff: [symfony-users] embeding form by ajax i'm searching for an exemple of how to embed form in a main form using ajax i have an idea about but i can't find an exemple to do this plz help me -- 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] login with email instead of a separate username
Hi.. I was looking for an authentication module (including registration by mail, forgot password etc) in symfony and installed sfGuardDoctrine sfForkedDoctrineApply, But these plugins use a separate userid for login instead of using the email address. Is there any plugin or a patch to use emailid for login instead of a separate login id? thx gopi -- 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
Re: [symfony-users] login with email instead of a separate username
http://bluehorn.co.nz/2009/06/12/symfony-12-propel-and-sfguardplugin-email-login/ On Wed, Mar 31, 2010 at 09:13, gopi mgo...@gmail.com wrote: Hi.. I was looking for an authentication module (including registration by mail, forgot password etc) in symfony and installed sfGuardDoctrine sfForkedDoctrineApply, But these plugins use a separate userid for login instead of using the email address. Is there any plugin or a patch to use emailid for login instead of a separate login id? thx gopi -- 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject. -- 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Any way to show the global errors only if there isn't any field error?
For example: i have the signin action of sfDoctrineGuardPlugin. I have empty the 'username' input widget and then click on 'Sign in', this two messages are showed -Required and The username and/or password is invalid. I would like to show just the first message (- Required). Javi On Mar 31, 11:48 am, Javier Garcia tirengar...@gmail.com wrote: Hi, in a form if there is a field and a global error both messages are showed. I would like to show the global errors only if there isn't any field error. Any idea? Javi -- 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
[symfony-users] Re: propel relation m:n
Can you post your real schema? The one above is uncomplete. On 30 Mar, 18:16, Julian Reyes julian.reyes.escri...@gmail.com wrote: Hi i have a problem with this type or relations. in the jobeet tutorial explain the ORM make it relations many to many automaticly buts don't works. only saved student and guardian but no student_guardian example schema: student: ~ guardian: ~ studiant_guardian: ~ ok. i need put an embebed guardian form into the student and when i click on save the orm save it for me the three tables student, guardian and studentguardian. can help me someone with this problem. thanks in advance for helping. Julian Reyes -- 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
[symfony-users] Re: Invoice Model
Did you read the entire chapter? See http://www.symfony-project.org/more-with-symfony/1_4/en/06-Advanced-Forms#chapter_06_saving_object_forms cheers Massimiliano On 30 Mar, 19:56, Veríssimo jveriss...@gmail.com wrote: The echo was just a debug line, but I should only use the embed form only if the $this-getObject() != null. Because when it is null the embed form(Invoiceline) is saved with the variable invoiceid = null. thank you. On Mar 30, 2:20 pm, Massimiliano Arione garak...@gmail.com wrote: You don't need to check. The getObject() method returns null if no object associated, and this is fine with form instance. Just avoid to echo object's id in the form's configure why are you doing this??? cheers Massimiliano On 30 Mar, 01:07, Veríssimo jveriss...@gmail.com wrote: I have implemented this, but i only have the Object after a previous have saved it. Do i have to do something like check ($this-getObject()) as a object? public function configure() { $subForm = new sfForm(); for ($i = 0; $i 2; $i++) { $linharecibo = new Linharecibo(); $linharecibo-Recibo = $this-getObject(); #This line does not have a object the first time echo 'Raios'.$linharecibo-Recibo-getId(); $form = new LinhareciboForm($linharecibo); $subForm-embedForm($i, $form); } $this-embedForm('Linhas', $subForm); } -- 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
[symfony-users] Partial in component
In an action I can use $this-getPartial('system/email_template'), but that doesn't work in an component. How can I do this in a component? -- 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
[symfony-users] Multiselect images for export
Hello, I was wondering how i can make next possible: I want to be able to select images (that i got the URL from out of a database) and when i'm done selecting the images i want i should be able to press a button to write these URL's to a file Does someone know how i can make a list of images that stores the selected images in a ArrayList? Thanks a lot for future answers :) greetings Kim -- 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
[symfony-users] How to create object if value has not match in database when using sfWidgetFormJQueryAutocompleter?
Hi symfony community! I have searched on several posts related to this widget for several days, but until now I haven't found a lead about how to accomplish what I need in a form. The situation is like this: The form is using several autocomplete fields, and everything is working great! But it can always be better, right? Cool I want to alter the validator used for the widget so that, if no match is found, it can create the referenced object by the value typed on the field, and then create the relationship with the widget, allowing to save the form using the new autocomplete value even if it didn't existed before on the DB. I am not sure if I should extend the validator (until now I suppose it's sfValidatorChoice), or if other technique should be better. I have seen this behavior in some web apps, but I have no solid idea how to achieve this. (like for example google's kind of autocomplete search). If anyone can point me in the right direction, I'll be grateful! Best regards -- 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Any way to show the global errors only if there isn't any field error?
Here is the snippet if someone wants it: $num_errores_totales = count($form-getErrorSchema()-getErrors()); $num_errores_globales = count($form-getErrorSchema()- getGlobalErrors()); if (0 == $num_errores_totales - $num_errores_globales){ echo $form-renderGlobalErrors(); } Javi On Mar 31, 2:57 pm, Javier Garcia tirengar...@gmail.com wrote: For example: i have the signin action of sfDoctrineGuardPlugin. I have empty the 'username' input widget and then click on 'Sign in', this two messages are showed -Required and The username and/or password is invalid. I would like to show just the first message (- Required). Javi On Mar 31, 11:48 am, Javier Garcia tirengar...@gmail.com wrote: Hi, in a form if there is a field and a global error both messages are showed. I would like to show the global errors only if there isn't any field error. Any idea? Javi -- 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
[symfony-users] Re: How to create object if value has not match in database when using sfWidgetFormJQueryAutocompleter?
Hi, in fact you don't need a validator anymore :P or maybe just for the type, but not for the choices. and then you can add the object in updateObject(), and it will be created in save() On Apr 1, 5:33 am, J_Wesker j_chave...@hotmail.com wrote: Hi symfony community! I have searched on several posts related to this widget for several days, but until now I haven't found a lead about how to accomplish what I need in a form. The situation is like this: The form is using several autocomplete fields, and everything is working great! But it can always be better, right? Cool I want to alter the validator used for the widget so that, if no match is found, it can create the referenced object by the value typed on the field, and then create the relationship with the widget, allowing to save the form using the new autocomplete value even if it didn't existed before on the DB. I am not sure if I should extend the validator (until now I suppose it's sfValidatorChoice), or if other technique should be better. I have seen this behavior in some web apps, but I have no solid idea how to achieve this. (like for example google's kind of autocomplete search). If anyone can point me in the right direction, I'll be grateful! Best regards -- 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
[symfony-users] Re: Swift Mailer Configuration
Figured this out. I was working in the dev environment and I had tried to enable sending by altering my factories.yml like this... dev: mailer: param: #delivery_strategy: none but what I should have done was this... dev: # mailer: # param: # delivery_strategy: none On Mar 30, 4:38 pm, Jonathan Franks jonat...@ifranks.com wrote: I'm a bit confused. I altered my factories.yml to look like this... all: mailer: param: transport: param: host: smtp.gmail.com port: 465 encryption: ssl username: username password: password But, when I try to send an email on my local machine, running os X, little snitch reports that the smtp process is trying to connect to... aspmx.l.google.com on port 25 Am I doing something wrong? -- 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.