[symfony-users] Trying to replace the default 'Required' message

2010-08-24 Thread Javier Garcia
Hi, im trying to replace the default 'Required' message in this validator: $this-setValidator('email', new sfValidatorAnd(array( new sfValidatorEmail(array('required' = true, 'trim' = true)), new sfValidatorString(array('required' = true, 'max_length' = 80)), new

Re: [symfony-users] Trying to replace the default 'Required' message

2010-08-24 Thread Michał Piotrowski
2010/8/24 Javier Garcia tirengar...@gmail.com:  Hi, im trying to replace the default 'Required' message in this validator:    $this-setValidator('email', new sfValidatorAnd(array(      new sfValidatorEmail(array('required' = true, 'trim' = true)),      new sfValidatorString(array('required'

Re: [symfony-users] Trying to replace the default 'Required' message

2010-08-24 Thread Michał Piotrowski
Eh, sorry, 1 array parameters array('required' = true) 2 array messages array('required' = 'Pole wymagane.') 'required' = true,       'invalid' = 'An account with that email address already exists. If you have forgotten your password, click cancel, then Reset My Password.'),  

[symfony-users] Re: Send Mails

2010-08-24 Thread guiguiboy
Is your server correctly configured to send mails ? On 24 août, 00:51, vero vegoi...@alumni.uv.es wrote: I have tried configuring my computer to use the fuction mail() . I have tried use Zend Framework,, exactly like in jobeet. But nothing works. The code was compiled, but no email was send.

[symfony-users] Re: Send Mails

2010-08-24 Thread vero
I have installed Symfony 1_2 so I don't have Swift Mailer, and I find too difficult change my project to 1_4. Apart from that, I have configed php.ini: ; For Win32 only. SMTP = smtp.gmail.com sendmail_from= vegoi...@gmail.com smtp_server = smtp.gmail.com smtp_port = 25 auth_username =

[symfony-users] Re: Send Mails

2010-08-24 Thread vero
Of course, I have changed this line, but I have a problem with cute/ paste. $mail-addTo($affiliate-getEmail()); -- $mail- addTo('vegoi...@gmail.com'); Sorry. -- Forwarded message -- From: vero vegoi...@alumni.uv.es Date: 24 ago, 09:43 Subject: Send Mails To: symfony users I

Re: [symfony-users] Re: Send Mails

2010-08-24 Thread Gábor Fási
That means it is not properly configured - no wonder you cannot send emails. The message says that your smtp server needs encryption, most probably the same applies for authentication. Check its manual how to set it up. On Tue, Aug 24, 2010 at 09:43, vero vegoi...@alumni.uv.es wrote: And I use a

[symfony-users] Re: sfFormExtraPlugin - jquery UI DatePicker - Safari 5

2010-08-24 Thread Tom Ptacnik
Try this http://garakkio.altervista.org/datepickerui/ I like it. On 16 srp, 21:42, Joe666 joe...@gmail.com wrote:  Hello guys, I installed the sfFormExtraPlugin as per the README file, then I downloaded jquery 1.4.2 and jquery UI 1.8.4, installed, included in the project, then I go to one of

AW: [symfony-users] Re: created_at gets deleted on edit

2010-08-24 Thread Christopher Schnell
Hi, I did unset the widgets, but that wasn't enough. Francois helped me then on the propel list. I simply forgot to unset the validator, which caused some weired behaviour. Regards, Christopher. -Ursprüngliche Nachricht- Von: symfony-users@googlegroups.com [mailto:symfony-

[symfony-users] Loading factories.yml configuration from task

2010-08-24 Thread Martin Chatterton
Hi, I'm using symfony 1.4.6 and I have the following configuration set in my factories.yml file... # all: mailer: param: transport: class: Swift_SendmailTransport param: command: /usr/sbin/sendmail -oi -t # ...to overcome the 'double dot' issue as

[symfony-users] Re: Send Mails

2010-08-24 Thread vero
Have I touched openssl.cnf or something like that? On 24 ago, 09:51, Gábor Fási maerl...@gmail.com wrote: That means it is not properly configured - no wonder you cannot send emails. The message says that your smtp server needs encryption, most probably the same applies for authentication.

Re: [symfony-users] Trying to replace the default 'Required' message

2010-08-24 Thread Javier Garcia
Sorry, could you paste the entire validator? I dont understand.. On 08/24/2010 08:47 AM, Michał Piotrowski wrote: Eh, sorry, 1 array parameters array('required' = true) 2 array messages array('required' = 'Pole wymagane.') 'required' = true, 'invalid' = 'An account with that

[symfony-users] Re: sfDependentSelectPlugin problem

2010-08-24 Thread wueb
Any idea??? Please? -- 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

[symfony-users] The form empty values are not translated

2010-08-24 Thread Javier Garcia
Hi, I have a select to change the language of my forms and i have this widget: $this-setWidget('fecha_nac', new sfWidgetFormI18nDate(array('culture' = 'es_ES', 'years' = array_combine($years, $years),

[symfony-users] Re: Storing a list of arbitrary length to the DB

2010-08-24 Thread json2001
Ahh! Yes, that's exactly what I needed to know - many to many. Thank you very much, I haven't gotten to that day on Jobeet just yet, looks like I was jumping the gun! On Aug 23, 5:53 pm, Daniel Lohse annismcken...@googlemail.com wrote: You are going to model this as a many-to-many relation

[symfony-users] Re: Send Mails

2010-08-24 Thread vero
It's impossible. I don't know how send an email at all. I have tried everything but no email arrive to inbox. I will have to decided what to do in that part of my project. Thanks to all for trying to help me. On 24 ago, 09:51, Gábor Fási maerl...@gmail.com wrote: That means it is not properly

Re: [symfony-users] Re: Send Mails

2010-08-24 Thread Gustavo Adrian
Use the port 465 instead of the 25 for gmail On Tue, Aug 24, 2010 at 9:48 AM, vero vegoi...@alumni.uv.es wrote: It's impossible. I don't know how send an email at all. I have tried everything but no email arrive to inbox. I will have to decided what to do in that part of my project. Thanks

Re: [symfony-users] Re: Send Mails

2010-08-24 Thread Gábor Fási
Your problem is still with the encryption, I'm not sure php's mail() can handle that. Why can't you upgrade to 1.3? I did that, and it was pretty easy. I did the 1.2-1.3 switch in about two hours, and now I have the full power of swift mailer, and I am using it with gmail's smtp. On Tue, Aug 24,

[symfony-users] Two questions about sfDoctrineApplyPlugin

2010-08-24 Thread Javier Garcia
Hi, I have found in sfDoctrineApplyPlugin a template called applyAfter.php that shows a message like You have registered ok It is called from the apply action this way return 'After'; when the apply form is valid. What kind of template is that? I never saw that way (return 'After';)

[symfony-users] Re: sfDependentSelectPlugin problem

2010-08-24 Thread chok
Don't know why but use_javascrpts_form don't work for me try : ?php use_javascript('/sfDependentSelectPlugin/js/ SelectDependiente.min.js') ? It's ok ? On 24 août, 13:38, wueb webmaster@gmail.com wrote: Any idea??? Please? -- If you want to report a vulnerability issue on symfony,

[symfony-users] Non existent model 'Blogpost'

2010-08-24 Thread tek123
Hi, I have just started symfony 1.1 but I have ran into this complete blockade. I seem to be stuck on the create an application part on here: http://www.symfony-project.org/tutorial/1_1/en/my-first-project $ php symfony propel:generate-crud –non-verbose-templates –with-show frontend post

[symfony-users] Delete on this relation doesn't work: SQLSTATE[23000]: Integrity constraint violation

2010-08-24 Thread cosmy
Hi all. I have this class in my schema.yml: Category: actAs: { Timestampable: ~ } columns: name: { type: string(255), notnull: true } cliente: { type: string(255), notnull: true, default: prova } modalita: { type: string(255), notnull: true, default: normale } id_interview: {

Re: [symfony-users] Non existent model 'Blogpost'

2010-08-24 Thread Romain Pouclet
Why exactly are you using Symfony 1.1 considering it's no longer maintained? 2010/8/24 tek123 paktek...@googlemail.com: Hi, I have just started symfony 1.1 but I have ran into this complete blockade. I seem to be stuck on the create an application part on here:

[symfony-users] [Symfony 1.4] doSave never called on update?

2010-08-24 Thread Gustavo Adrian
Hi everyone, I have something like this for my schema: WebGenericElement: actAs: I18n: fields: [title] columns: title: type: string(255) notnull: true Product: inheritance: extends:WebGenericElement type:

[symfony-users] Re: Trying to replace the default 'Required' message

2010-08-24 Thread Thor
you have to pass it as an required field in an array, given as second parameter of the validator new sfvalidatorsomething(array(...),array('invalid'='invalid message','required'='required message')); On 24 Ago, 13:05, Javier Garcia tirengar...@gmail.com wrote:   Sorry, could you paste the

[symfony-users] SharePoint Developer

2010-08-24 Thread sumeet....@gmail.com
Hello, I have over 10+ years of experience in software development. I am software developer looking for freelance or Full Time work, my skill sets: .NET TECHNOLOGY .NET(ASP.NET / C# / VB.NET) SharePoint 2003, MOSS 2007, VB, ASP (VBScript Javascript), SQL Server, Access (VBA), Excel (VBA),

[symfony-users] Re: Send Mails

2010-08-24 Thread vero
IT WORKS!! IT WORKS!! REALLY YOU ARE MY HERO. I believe that change to 1_3 was complex but It has been very easy and you have saved a lot of functionalities that depends on the emails in my project. THANKS. On 24 ago, 15:04, Gábor Fási maerl...@gmail.com wrote: Your problem is still with the

[symfony-users] sfWidgetFormDoctrineChoice problem

2010-08-24 Thread Andro Fumero
Hi there, Does anyone tried to limit the result of dropdown to only 1? or atleast just keep the dropdown hidden with selected value? I already set the id of the following dropdown, and i dont need to show other choices anymore. public function executeNew(sfWebRequest $request) {

[symfony-users] Problems when creating database

2010-08-24 Thread Marcio Pozzato
Please, I can't create database through 'mysqladmin create jobeet -uroot -p', included at the Day 3 - Tutorial Symfony. MySql returns the following error message: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' using passowrd: YES' what means? Thanks for a

Re: [symfony-users] Problems when creating database

2010-08-24 Thread Gábor Fási
It means the password you entered is wrong. On Tue, Aug 24, 2010 at 17:44, Marcio Pozzato mspozz...@gmail.com wrote: Please, I can't create database through 'mysqladmin create jobeet -uroot -p', included at the Day 3 - Tutorial Symfony. MySql returns the following error message: connect to

[symfony-users] symfony2 - EventDispatcher vs Aspects

2010-08-24 Thread Ruben
Hi all, I'm really excited about the symfony 2 framework as it is in my eyes a great step forward to a more advanced web framework that caters for cleaner and more modular code. Currently I'm reading up on the EventDispatcher (http://docs.symfony-reloaded.org/guides/event/ overview.html) leaving

[symfony-users] Re: organizing partials in folders

2010-08-24 Thread Joshua
Thanks Alex. I have tried all ways to pass the include path. I think now Symfony does not support partials in folders. This is very dumb and a big problem for Symfony. It should be supported. On Aug 21, 5:57 am, Alexandre Salomé alexandre.sal...@gmail.com wrote:   He is looking for a module

Re: [symfony-users] Loading factories.yml configuration from task

2010-08-24 Thread Thomas Rabaix
factories configuration is linked to an application configuration object via sfContext object. Tasks are standalone objects. However there is a hack : read the getMailer() documentation from sfCommandApplicationTask class : * Returns a mailer instance. * * Notice that your task should

Re: [symfony-users] Loading factories.yml configuration from task

2010-08-24 Thread Stéphane
What this means is that you need to add an (optional) argument (with default value) to your task, named application. Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Tue, Aug 24, 2010 at 6:16 PM, Thomas Rabaix

[symfony-users] Re: Send Mails

2010-08-24 Thread vero
Why if I put localhost/Testnewmail give me an internal error and if I put the localhost/frontend_dev.php it works? I have put in factories.yml: prod: mailer: param: delivery_strategy: single_address delivery_address: vegoi...@gmail.com dev: mailer: param:

Re: [symfony-users] Re: Trying to replace the default 'Required' message

2010-08-24 Thread Javier Garcia
I tried this: $this-setValidator('email', new sfValidatorAnd(array( new sfValidatorEmail(array('required' = true, 'trim' = true)), new sfValidatorString(array('required' = true, 'max_length' = 80), array('required' = 'THIS FIELD IS REQUIRED')), new

Re: [symfony-users] Problems when creating database

2010-08-24 Thread Andro Fumero
check your user name and password. it is found in config/databases.yml From: Marcio Pozzato mspozz...@gmail.com To: Symfony Group symfony-users@googlegroups.com Sent: Tue, August 24, 2010 11:44:24 AM Subject: [symfony-users] Problems when creating database

[symfony-users] Re: sfDependentSelectPlugin problem

2010-08-24 Thread wueb
Still nothing :( On 24 Ago, 14:24, chok chok...@gmail.com wrote: Don't know why but use_javascrpts_form don't work for me try : ?php use_javascript('/sfDependentSelectPlugin/js/ SelectDependiente.min.js') ? It's ok ? On 24 août, 13:38, wueb webmaster@gmail.com wrote: Any idea???

Re: [symfony-users] Re: Trying to replace the default 'Required' message

2010-08-24 Thread Gustavo Adrian
Maybe because first it's the sfValidatorEmail that throws the required error? Although, if you want to change the required field message to every validator, you could do this: sfValidatorBase::setDefaultMessage( 'required', 'My required message' ); On Tue, Aug 24, 2010 at 1:53 PM, Javier Garcia

Re: [symfony-users] Re: Trying to replace the default 'Required' message

2010-08-24 Thread Gustavo Adrian
Or course, that line could be on the BaseForm or even in the application configuration class so every form could use that default message. The same applies to the 'invalid' message. On Tue, Aug 24, 2010 at 2:26 PM, Gustavo Adrian comfortablynum...@gmail.com wrote: Maybe because first it's the

Re: [symfony-users] Re: Trying to replace the default 'Required' message

2010-08-24 Thread Javier Garcia
Thanks Gustavo, I think you mean this: $this-setValidator('email', new sfValidatorAnd(array( new sfValidatorEmail(array('required' = true, 'trim' = true), array('required' = 'THIS FIELD IS REQUIRED')), new sfValidatorString(array('required' = true, 'max_length' = 80)),

[symfony-users] [Symfony2] How to configure Doctrine\ORM\Configuration

2010-08-24 Thread Aaron DM
How do I configure Doctrine\ORM\Configuration? Like, I want to add a new DQL function I made; and to register it I would normally do this: $config = new \Doctrine\ORM\Configuration(); $config-addCustomStringFunction('DATEDIFF', 'DoctrineExtensions\Query \MySql\DateDiff'); But how do I do that

[symfony-users] Re: organizing partials in folders

2010-08-24 Thread James Cauwelier
You can support it yourself: 1. Disable standard Partial helper in the settings.yml 2. Copy the partial helper from the symfony lib and adjust to suit your needs. You will probably want to create a new view class that inherits from sfParialView Good luck with it... James On Aug 24, 6:06 pm,

[symfony-users] Re: Trying to replace the default 'Required' message

2010-08-24 Thread Reo
Otherwise you could do, in your form class, #myformForm.class.php public function configure() { if (user_culture == fr) $this-widgetSchema-getFormFormatter()- setTranslationCatalogue('form_fr'); else if (user_culture == en) $this-widgetSchema-getFormFormatter()-

Re: [symfony-users] [Symfony2] How to configure Doctrine\ORM\Configuration

2010-08-24 Thread Jonathan Wage
Hi, We need to allow you to specify these things from the config.yml/config.xml. Can you create a ticket to improve this? Thanks, Jon On Tue, Aug 24, 2010 at 12:58 PM, Aaron DM amai...@gmail.com wrote: How do I configure Doctrine\ORM\Configuration? Like, I want to add a new DQL function I

Re: [symfony-users] How to load a Doctrine 2 Custom Mapping

2010-08-24 Thread Jonathan Wage
Hi, It is the same issue as the other of your e-mails. It is not supported right now, we just need to improve what is allowed to be specified in the application configuration to create the DI container. - Jon On Mon, Aug 23, 2010 at 3:57 PM, Aaron DM amai...@gmail.com wrote: I am trying to

Re: [symfony-users] Re: created_at gets deleted on edit

2010-08-24 Thread Jonathan Wage
Yes, you need to remove the entire field from the form, not just the widget. - Jon On Tue, Aug 24, 2010 at 1:22 AM, Christopher Schnell christopher.schn...@mda.ch wrote: Hi, I did unset the widgets, but that wasn't enough. Francois helped me then on the propel list. I simply forgot to

Re: [symfony-users] Generate Document Classes for MongoDb

2010-08-24 Thread Jonathan Wage
Hmm, are you using the latest versions? - Jon On Mon, Aug 23, 2010 at 4:57 PM, Michael excelwebz...@gmail.com wrote: I'm trying to move from MySQL to MongoDb, and start creating a test class: ?php namespace Bundle\TestBundle\Document; /** * User * Represents a particular user. *

[symfony-users] Re: sfDoctrineGuardPlugin and i18n

2010-08-24 Thread mrossw
Hi, I think i am having the same problem, only that i need the i18n in spanish. I read that, so I was expecting to work out of the box : http://www.symfony-project.org/jobeet/1_4/Doctrine/en/19#chapter_19_sub_forms_forms_i18n Only the labels of the register form fields are not translated

[symfony-users] Re: sfDoctrineGuardPlugin and i18n

2010-08-24 Thread Lutz
Hi, I had the same problem with HTML tags in general. I found this thread: http://oldforum.symfony-project.org/index.php/mv/msg/10655/77804/#msg_77804 that helped me. I modified 'lib/symfony/i18n/sfMessageSource_XLIFF.class.php' according to what 'jjoaco' wrote and the text got translated

[symfony-users] Re: disable form value remembering?

2010-08-24 Thread Tom Ptacnik
The filter value is saved to the session - the filter is saved even if you move to another page and go back. Also the value is showed on the form ... it's good to know which filter is set. How do you want to change it? ... only don't show the value on the form but let the filter value in the