[symfony-users] Re: TIP: FOR USERS UPDATING DATABASE IN PROPEL

2010-04-28 Thread Richtermeister
Alternatively, you can just skip the insert task, and selectively grab tables from the generated sql definitions in /data/sql/.. Paste those into mysql, and you got a new table as well. As for modifying existing tables, that would truly fall under migration, and unfortunately it involves some

Re: [symfony-users] Re: radiobutton and select values

2010-04-28 Thread Parijat Kalia
Sorry, haven't yet used the form widget framework..still stuck on good old strategies! On Tue, Apr 27, 2010 at 8:39 PM, fRAnKEnSTEin shirkav...@gmail.com wrote: hi, The problem is that i am using a form, so instead of cretaing a select_tag in the template, i use for example something like

Re: [symfony-users] Re: radiobutton and select values

2010-04-28 Thread Thomas Rabaix
defaults value must be passed when the form is instanciate. so don't do any think at the view layer... $default = $this-getUser()-getAttribute('values'); $form = new myForm($default); if you work with a doctrine form $default = $this-getUser()-getAttribute('values'); $object = new Object;

[symfony-users] Re: Explication du plugin mgI18nPlugin

2010-04-28 Thread François
Merci de ta réponse mais je reste bloqué :/ Mon fichier factories.yml est de cette forme : [factories.yml] i18n: class: mgI18N param: source: mgMySQL database: mg_i18n_plugin debug:true learning_mode:true

Re: [symfony-users] Re: TIP: FOR USERS UPDATING DATABASE IN PROPEL

2010-04-28 Thread Parijat Kalia
Can you explain this in detail? Why would modification of existing tables require migrations? Theoretically, I would just use build-schema, to imitate the changes that I make to the existing db tables. Follow it up build-model, to regenerate the model files. If that is a problem, I could delete

[symfony-users] Re: Zend et Symfony

2010-04-28 Thread James Cauwelier
Do you have the Zend_Pdf classes in your path? In other word, when you only downloaded the pieces of the framework you need, there is a good chance that you forgot to download the Zend_Pdf component. Sometimes the most obvious things gives us the most trouble. James On Apr 26, 3:38 pm, Omar El

Re: [symfony-users] Re: TIP: FOR USERS UPDATING DATABASE IN PROPEL

2010-04-28 Thread Daniel Lohse
Because just building your schema does not change your database at all. If you changed a column type from string to int then you'll have to manually change that column type in the database. Migrations are a way to do that automatically (kind of). Daniel On 28.04.2010, at 09:58, Parijat Kalia

[symfony-users] Re: Zend et Symfony

2010-04-28 Thread Omar El Mazny
I thought of that problem thought i downloaded all the framework didn't delete anything so i looked through the folders i found the Pdf folder. Omar On Apr 28, 9:59 am, James Cauwelier james.cauwel...@gmail.com wrote: Do you have the Zend_Pdf classes in your path?  In other word, when you only

[symfony-users] Re: Explication du plugin mgI18nPlugin

2010-04-28 Thread François
Je ne pense pas que mes fichiers soient mal configurés car j'obtiens cette erreur lorsque je lance une page (avec le frontend_dev.php) : SQLSTATE[42S02]: Base table or view not found: 1146 Table 'evadonis_i18n.catalogue' doesn't exist Et si je change le database: mg_i18n_plugin de mon fichier

[symfony-users] how to put a class on list element using sfform?

2010-04-28 Thread mel_06
hi guys! i need to insert a class for my list element using sfform? thanks! -- 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

Re: [symfony-users] how to put a class on list element using sfform?

2010-04-28 Thread Daniel Lohse
A CSS class? You've got to be a bit more specific than that. :) Cheers, Daniel On 28.04.2010, at 10:22, mel_06 wrote: hi guys! i need to insert a class for my list element using sfform? thanks! -- If you want to report a vulnerability issue on symfony, please send it to security

[symfony-users] Re: how to put a class on list element using sfform?

2010-04-28 Thread mel_06
yes, a CSS class indeed. how can i do that? On Apr 28, 4:25 pm, Daniel Lohse annismcken...@googlemail.com wrote: A CSS class? You've got to be a bit more specific than that. :) Cheers, Daniel On 28.04.2010, at 10:22, mel_06 wrote: hi guys! i need to insert a class for my list element

[symfony-users] Re: how to put a class on list element using sfform?

2010-04-28 Thread mel_06
yes a CSS class indeed. how can i do that? On Apr 28, 4:25 pm, Daniel Lohse annismcken...@googlemail.com wrote: A CSS class? You've got to be a bit more specific than that. :) Cheers, Daniel On 28.04.2010, at 10:22, mel_06 wrote: hi guys! i need to insert a class for my list element

[symfony-users] How to store data for the relation?

2010-04-28 Thread saki
Hi! I don't really understand how to store data for the relations. I give an example... Service table Hosting Programming Administrator works Company table Company1 Company2 Company3 One company has one or more services. One service can be related

Re: [symfony-users] How to store data for the relation?

2010-04-28 Thread Alexandru-Emil Lupu
Well is a problem of perception but i think you can do this: Company Table (has a M:N relation to) Service Table Service Table (has a M:N relation to) Service Prices Service Prices (has a 1:1 unique relation on Company Table + Service Table) Aletrnativelly, you can use Service Table as M:N

Re: [symfony-users] Problema con proyecto en servido r de producción

2010-04-28 Thread Javier Garcia
On 04/27/2010 03:07 AM, Fabian Barrera wrote: Estoy trabajando en mi primer proyecto con symfony 1.4 (antes trabajaba con el 1.0). Lo exporté usando project:deploy, siguiendo el tutorial de jobeet. Al entrar a la aplicación, muestra la página de login correctamente, pero al insertar el usuario y

Re: [symfony-users] Re: TIP: FOR USERS UPDATING DATABASE IN PROPEL

2010-04-28 Thread Daniel Lohse
Okay, that I understand. My only gripe with this would be that the file it generates is so long as it does not use the consise (or compact) form. Kind of hard to browse a schema that has all models in it and needs 100 lines for each, even when it only contains a few columns. Mhm. Other than

[symfony-users] Re: Problema con proyecto en servido r de producción

2010-04-28 Thread Javier Garcia
En cualquier caso, deberias haber preguntado en el grupo de español (spanish). Javi On Apr 28, 11:38 am, Javier Garcia tirengar...@gmail.com wrote: On 04/27/2010 03:07 AM, Fabian Barrera wrote: Estoy trabajando en mi primer proyecto con symfony 1.4 (antes trabajaba con el 1.0). Lo

[symfony-users] Re: how to put a class on list element using sfform?

2010-04-28 Thread mel_06
doesn't really matter. after the form is rendered, it should put a class to all list element. On Apr 28, 5:37 pm, Daniel Lohse annismcken...@googlemail.com wrote: Every widget has 2 constructor arguments: $options and $arguments. You have to pass array('class' = 'your_css_class') as the

Re: [symfony-users] Re: how to put a class on list element using sfform?

2010-04-28 Thread Daniel Lohse
Well, that doesn't get you much of an answer from me as I don't really understand what you're trying to do. Add a class to all list elements? How can symfony know what is a list element? You have to provide more context, e.g. the form class (or the form's base class), the HTML structure, what

Re: [symfony-users] Re: how to put a class on list element using sfform?

2010-04-28 Thread Daniel Lohse
Now we're getting somewhere. :) You'll need to make your own form formatter. Okay, do the following: copy the lib/vendor/symfony/lib/widget/sfWidgetFormSchemaFormatterList.class.php file to your own lib/widget/sfWidgetFormSchemaFormatterListCustom.class.php file. Open it and change the class

Re: [symfony-users] help_nahoMailPlugin

2010-04-28 Thread safa boubekri
hi thank you the version is 1.1.3 should you give me the steps to confgurate appl.yml and how can i send msg with this plugin i m grateful of your help -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this

Re: [symfony-users] help_nahoMailPlugin

2010-04-28 Thread Alexandru-Emil Lupu
Why don't you check this ? http://www.symfony-project.org/tutorial/1_3/en/whats-new Alecs On Wed, Apr 28, 2010 at 1:37 PM, safa boubekri boubekri.s...@gmail.com wrote: hi thank you  the version is 1.1.3 should you  give me the  steps  to confgurate  appl.yml and how can  i send  msg  with 

Re: [symfony-users] help_nahoMailPlugin

2010-04-28 Thread Jérémie
safa boubekri wrote: hi thank you the version is 1.1.3 should you give me the steps to confgurate appl.yml and how can i send msg with this plugin i m grateful of your help Did you read the several tutorials on symfony-project.org? They can be very useful, and explain quite

[symfony-users] Re: How to store data for the relation?

2010-04-28 Thread saki
OK, i've added the fee column to the connection table. I can show/ list all the services in the company form with this: ?php echo $form['services_list'] ? in the form i use this: $this-widgetSchema['services_list']-setOption('multiple', true);

Re: [symfony-users] Question about sfValidatorDate

2010-04-28 Thread Alexandru-Emil Lupu
well, try this: $years = range(1900,date('Y')); 'fecha_nac' = new sfWidgetFormDate(array('years' = array_combine($years, $years, it will give you an array like array('1901'=1901, '1902'=1902 ) On Wed, Apr 28, 2010 at 2:13 PM, Javier Garcia tirengar...@gmail.com wrote: Hi, i have

Re: [symfony-users] Re: How to store data for the relation?

2010-04-28 Thread Alexandru-Emil Lupu
try embed forms :) On Wed, Apr 28, 2010 at 1:56 PM, saki sakrame...@gmail.com wrote: OK, i've added the fee column to the connection table. I can show/ list all the services in the company form with this: ?php echo $form['services_list'] ? in the form i use this:

Re: [symfony-users] Question about sfValidatorDate

2010-04-28 Thread Daniel Lohse
Yes, that's correct. It's also documented in the sfValidatorDate class (take a look into the API). :) On 28.04.2010, at 13:24, Alexandru-Emil Lupu wrote: well, try this: $years = range(1900,date('Y')); 'fecha_nac' = new sfWidgetFormDate(array('years' = array_combine($years, $years,

[symfony-users] High Availability

2010-04-28 Thread fphilip
Hi Any idea, best practices, recommendations or something to High Availability Clustered Applicaction development? -- 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

Re: [symfony-users] Re: TIP: FOR USERS UPDATING DATABASE IN PROPEL

2010-04-28 Thread Eno
On Wed, 28 Apr 2010, Parijat Kalia wrote: you missed out part of the conversation. The Idea is to change the database manually yourself. Then use build-schema to get the schema file up to date. This you do so that when you run build-model, it reads an up to date schema file. As I said

[symfony-users] Re: How to store data for the relation?

2010-04-28 Thread comb
Yeah I had the same problem for weeks... and I found a great Blog-Post on Metadata: http://melikedev.com/2010/04/06/symfony-saving-metadata-during-form-save-sort-ids/ In the example the sorting of a book-author relation is saved in the relation-table. Good luck! On 28 Apr., 11:05, saki

[symfony-users] Re: Propel nested set and sfOutputEscaperIteratorDecorator - too many queries

2010-04-28 Thread Massimiliano Arione
On 27 Apr, 18:27, Rytis Daugirdas rytis.daugir...@gmail.com wrote: Since when iterators are overkill? IMO, your suggestion is overkill. Propel documentation clearly states that a tree can be easily traversed via its iterator interface. Why should I write additional code (however simple) to get

Re: [symfony-users] Exporting data to CSV (+Doctrine)

2010-04-28 Thread Eno
On Wed, 28 Apr 2010, NOOVEO - Christophe Brun wrote: My client wants a .csv export with a simple list of entries, namely : the list of the web users who registered to his newsletter. I tried to add a ListCsvExport button in the backend and the appropriate method in the action, with no

RE: [symfony-users] Exporting data to CSV (+Doctrine)

2010-04-28 Thread NOOVEO - Christophe Brun
Nope, listCsvReportSuccess.php, sorry for the typo. -Message d'origine- So your action is called listCsvReport but your template is called listCsvExportSuccess.php ? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

RE: [symfony-users] Exporting data to CSV (+Doctrine)

2010-04-28 Thread Eno
On Wed, 28 Apr 2010, NOOVEO - Christophe Brun wrote: Nope, listCsvReportSuccess.php, sorry for the typo. Have you tried commenting out JUST the call to clearHttpheaders() ? -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

Re: [symfony-users] In remote host: Connection could not be established with host smtp.gmail.com [Connection timed out #110]

2010-04-28 Thread Eno
On Wed, 28 Apr 2010, Javier Garcia wrote: Hi, after deploying I gettin this error below when i try to send an mail: 500 | Internal Server Error | Swift_TransportException Connection could not be established with host smtp.gmail.com [Connection timed out #110] stack trace wearing my

[symfony-users] In remote host: Connection could not be established with host smtp.gmail.com [Connection timed out #110]

2010-04-28 Thread Javier Garcia
Hi, after deploying I gettin this error below when i try to send an mail: 500 | Internal Server Error | Swift_TransportException Connection could not be established with host smtp.gmail.com [Connection timed out #110] stack trace * at **() in

[symfony-users] How to diagnose translations problems

2010-04-28 Thread Fernando Navarro Páez
Hello! How to diagnose a translation problem? Several have the same problem: sfDoctrineGuardPlugin login form is displayed in English and I need it in Spanish What steps should I follow? thanks in advance -- If you want to report a vulnerability issue on symfony, please send it to security

[symfony-users] Fwd: Doctrine: strange charset problem on saving data to MySQL database

2010-04-28 Thread Roland Cremer
Someone an idea? I'm still searching for the problem.. -- Forwarded message -- From: Roland Cremer roland.cre...@gmail.com Date: 2010/4/25 Subject: Doctrine: strange charset problem on saving data to MySQL database To: symfony-users@googlegroups.com Hi all, I've got a strange

Re: [symfony-users] Doctrine: strange charset problem on saving data to MySQL database

2010-04-28 Thread Parijat Kalia
Explore html_entities for this...I'll try look ur problem in detail later On Sun, Apr 25, 2010 at 7:16 AM, Roland Cremer roland.cre...@gmail.comwrote: Hi all, I've got a strange problem on saving data to the database. i have a made a symfony-task to import a csv file and save the objects to

[symfony-users] delete a field in the bind methode

2010-04-28 Thread Belgacem TLILI
hello for all Sf Developpers i have add a field in my form , i use it to get an ajax list in a secondfield when saving the form i must delete the first object because it does not an element of my object form so i get all time : Unexpected extra form field named firstfield i'n thinking to

[symfony-users] Re: how to put a class on list element using sfform?

2010-04-28 Thread mel_06
how will i add my CSS class to my $rowFormat variable? $rowFormat = li\n %error%%label%\n %field%%help%\n %hidden_fields%/li\n; On Apr 28, 6:20 pm, Daniel Lohse annismcken...@googlemail.com wrote: Now we're getting somewhere. :) You'll need to make your own form formatter. Okay, do the

[symfony-users] Re: Doctrine: strange charset problem on saving data to MySQL database

2010-04-28 Thread pghoratiu
Hi! I don't think this has anything to do with Doctrine but with the handling of UTF-8 strings by the CSV parser. What class/library do you use for that? Display the values before: $boek-setDecription($import[85]); and you will see them truncated already. Best regards, gabriel On Apr

[symfony-users] Re: In remote host: Connection could not be established with host smtp.gmail.com [Connection timed out #110]

2010-04-28 Thread pghoratiu
Looks like port 465 is not open for your application, try to do a telnet directly from the server where the application is deployed and see if that works: $ telnet smtp.gmail.com 465 Trying 74.125.95.109... Connected to gmail-smtp-msa.l.google.com. Escape character is '^]'. gabriel On Apr

Re: [symfony-users] Re: how to put a class on list element using sfform?

2010-04-28 Thread Daniel Lohse
You are kidding, right? Man, there's your li right there, so just put class=clearfix into it do it looks like this: $rowFormat = li class=clearfix\n %error%%label%\n %field% %help%\n %hidden_fields%/li\n; :) Sent from my iPhone On Apr 29, 2010, at 5:25 AM, mel_06 06melc...@gmail.com