Re: [symfony-users] Re: How to combine Sympal with a regular Symfony app?
Hi, I've installed sympal plugin on windows using wamp cygwin. I tried to install sympal plugins through CLI command below. (symfony 1.4) $php symfony sympal:install Blog When issued this following error came. Fatal error: Call to member function getRootDir() on a non-object in $Project_Home/plugins/sfSympalPlugin/lib/plugins/sfSympalPluginManagerPlugin/lib/manager/sfSympalPluginManagerInstall.class.php on line 78. I tried with other plugins as well. Same issue getting repeated. Tried searching net, but couldn't get much help on this as sympal seems to be new. Could you please reply to this asp. Thanks, Pavan -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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] sympal plugin install error
Hi, I've installed sympal plugin on windows using wamp cygwin. I tried to install sympal plugins through CLI command below. (symfony 1.4) $php symfony sympal:install Blog When issued this following error came. Fatal error: Call to member function getRootDir() on a non-object in $Project_Home/plugins/sfSympalPlugin/lib/plugins/sfSympalPluginManagerPlugin/lib/manager/sfSympalPluginManagerInstall.class.php on line 78. I tried with other plugins as well. Same issue getting repeated. Tried searching net, but couldn't get much help on this as sympal seems to be new. Could you please reply to this asp. Thanks, Pavan -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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.
Re: [symfony-users] Error message format
I have done something like that. I will post my solution later today, as i haven't yet start my computer Alecs sent via htc magic On Dec 30, 2009 1:37 AM, Sid Bachtiar sid.bacht...@gmail.com wrote: Hi all, I embedded a form inside another form, and I try to print errors (of all the forms combined) like this in the template: ?php foreach ($form-getErrorSchema()-getErrors() as $error): ? *?php echo $error-getMessage(); ?br/ ?php endforeach; ? It is able to print all the errors as expected so that's good. But for the embedded form fields, the required error message always show: *0 [Reply to Sid is missing.] Instead of just: * Reply to Sid is missing The 0 is the field name. I want to get rid of it (and the brackets) and tried many ways without success. Does anyone know how to just print the error message without the field name and the brackets?? Cheers, Sid -- Blue Horn Ltd - System Development http://bluehorn.co.nz -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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.
Re: [symfony-users] Error message format
in my Form class object i ave added : public function getErrors($v = '') { foreach ($this-getErrorSchema() as $field=$error ) { foreach ($error-getErrors() as $currentError) { $v .= 'li'.sprintf(In the quot;%squot; tab you have an error:br strong%s/strong, $field , $currentError-getMessage()).'/li'; } } return $v; } After that, in my view i have added : ?php if ($form-hasErrors()):? div id=contact_form_errors ul?php echo $form-getErrors()?/ul /div ?php endif;? As my implementation has different tabs, your output (copy pasted from me) will output you some error messages like: In the Contact tab you have an error: *Name: required* Alecs On Wed, Dec 30, 2009 at 11:02 AM, Alexandru-Emil Lupu gang.al...@gmail.com wrote: I have done something like that. I will post my solution later today, as i haven't yet start my computer Alecs sent via htc magic On Dec 30, 2009 1:37 AM, Sid Bachtiar sid.bacht...@gmail.com wrote: Hi all, I embedded a form inside another form, and I try to print errors (of all the forms combined) like this in the template: ?php foreach ($form-getErrorSchema()-getErrors() as $error): ? *?php echo $error-getMessage(); ?br/ ?php endforeach; ? It is able to print all the errors as expected so that's good. But for the embedded form fields, the required error message always show: *0 [Reply to Sid is missing.] Instead of just: * Reply to Sid is missing The 0 is the field name. I want to get rid of it (and the brackets) and tried many ways without success. Does anyone know how to just print the error message without the field name and the brackets?? Cheers, Sid -- Blue Horn Ltd - System Development http://bluehorn.co.nz -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Have a nice day! Alecs As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: sfWidgetFormInputFileEditable no updating the file when edit
Thanks, for delete now it works. But for update? How can I do? On 29 Dic, 20:06, Alexandru-Emil Lupu gang.al...@gmail.com wrote: Sorry. That has to be in your model class Alecs sent via htc magic On Dec 29, 2009 9:05 PM, Alexandru-Emil Lupu gang.al...@gmail.com wrote: Override your delete method to: Public function delete(PropelPDO/ DoctrinePDO $con = null) { @unlink($this-getFilePath()); Parent::delete($con); } Or appropriate to fix full path to the file, and also the appropriate db adaptor. Alecs sent via htc magic On Dec 29, 2009 7:44 PM, ilcaduceo ilcadu...@gmail.com wrote: Hi all, I'm using the sfW... -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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] sfDoctrineGuard and behaviors
Ahoi, I am wondering if there is some way to add behaviors (like SoftDelete and Blameable) to the sfGuardUser model via the schema.yml. I can add them ovbiously by customizing the sfGuardUser model class and adding the behaviors inside the setUp() method, but I would rather manage this via the schema.yml. I saw some magic inside the sfGuardDoctrineExtra plugin to add the email field to the sfGuardUser model, but I do not know how that really works. In general its said that user attributes should be added via an sfGuardUserProfile model. But this is not practical for my use case. regards, Lukas Kahwe Smith m...@pooteeweet.org -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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.
Re: [symfony-users] sfDoctrineGuard and behaviors
You can't do it via the schema, but at any point during bootstrap you can retrieve the table instance of a model and add/change things with it. Or you can override the setup method and do it there like you said. - Jon On Wed, Dec 30, 2009 at 6:53 AM, Lukas Kahwe Smith m...@pooteeweet.orgwrote: Ahoi, I am wondering if there is some way to add behaviors (like SoftDelete and Blameable) to the sfGuardUser model via the schema.yml. I can add them ovbiously by customizing the sfGuardUser model class and adding the behaviors inside the setUp() method, but I would rather manage this via the schema.yml. I saw some magic inside the sfGuardDoctrineExtra plugin to add the email field to the sfGuardUser model, but I do not know how that really works. In general its said that user attributes should be added via an sfGuardUserProfile model. But this is not practical for my use case. regards, Lukas Kahwe Smith m...@pooteeweet.org -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Jonathan H. Wage (+1 415 992 5468) Open Source Software Developer Evangelist sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org You should follow me on Twitter: http://www.twitter.com/jwage You can contact Jonathan about Doctrine, Symfony and Open-Source or for training, consulting, application development, or business related questions at jonathan.w...@sensio.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-us...@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] inconsistent line ending style - symfony 1.4.1
after upgrading to symfony 1.4.1 under windows (downloaded zip) doctrine:build-model generates Base* files with mixed line endings: '\n' and '\r\n' a svn commit doesn't work for those files svn: Inconsistent line ending style -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?
no one here with the same problem? any ideas? thx On 29 Dez., 13:58, axel at axel.zu...@gmail.com wrote: after upgrading to symonfy 1.3 and sfFormExtraPlugin 1.1.1 the format option is no longer supported by sfWidgetFormJQuery $this-setWidgets(array( 'from_date' = new sfWidgetFormJQueryDate(array( 'image'='/images/icons/calendar_view_month.gif', 'format' = '%day%-%month%-%year%', 'culture' = 'de_AT') ), )); is there another way to change the date format (from mm-dd- to dd- mm-)? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: change name of checkbox without change id
I still have: input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ So I can't do that what I want in Symfony forms and I must use normal forms ? :O On 30 Gru, 08:59, DEEPAK BHATIA toreachdee...@gmail.com wrote: Try this foreach ($this-getOption('param') as $i) { $temp = 'test'.$i; $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = $temp)); } On Wed, Dec 30, 2009 at 12:31 PM, dziobacz aaabbbcccda...@gmail.com wrote: Is it possible to change name widget ? I am doing that: foreach ($this-getOption('param') as $i) { $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = 'test')); } but I get: input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ ID is the same as name !! -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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.
Re: [symfony-users] Re: change name of checkbox without change id
Try this $m = 1; foreach ($this-getOption('param') as $i) { $temp = 'test'.$m; $m = $m + 1; $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = $temp)); } On Wed, Dec 30, 2009 at 6:43 PM, dziobacz aaabbbcccda...@gmail.com wrote: I still have: input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ So I can't do that what I want in Symfony forms and I must use normal forms ? :O On 30 Gru, 08:59, DEEPAK BHATIA toreachdee...@gmail.com wrote: Try this foreach ($this-getOption('param') as $i) { $temp = 'test'.$i; $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = $temp)); } On Wed, Dec 30, 2009 at 12:31 PM, dziobacz aaabbbcccda...@gmail.com wrote: Is it possible to change name widget ? I am doing that: foreach ($this-getOption('param') as $i) { $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = 'test')); } but I get: input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ ID is the same as name !! -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: change name of checkbox without change id
Now they have different names but they should have the same names and different ID: input id=test1 type=checkbox name=test1/ input id=test2 type=checkbox name=test2/ input id=test2 type=checkbox name=test3/ On 30 Gru, 14:34, DEEPAK BHATIA toreachdee...@gmail.com wrote: Try this $m = 1; foreach ($this-getOption('param') as $i) { $temp = 'test'.$m; $m = $m + 1; $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = $temp)); } On Wed, Dec 30, 2009 at 6:43 PM, dziobacz aaabbbcccda...@gmail.com wrote: I still have: input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ So I can't do that what I want in Symfony forms and I must use normal forms ? :O On 30 Gru, 08:59, DEEPAK BHATIA toreachdee...@gmail.com wrote: Try this foreach ($this-getOption('param') as $i) { $temp = 'test'.$i; $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = $temp)); } On Wed, Dec 30, 2009 at 12:31 PM, dziobacz aaabbbcccda...@gmail.com wrote: Is it possible to change name widget ? I am doing that: foreach ($this-getOption('param') as $i) { $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = 'test')); } but I get: input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ ID is the same as name !! -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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.
Re: [symfony-users] Re: change name of checkbox without change id
Try this $m = 1; foreach ($this-getOption('param') as $i) { $temp = 'test'.$m; $temp1 = 'temp'.$m; $m = $m + 1; $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = $temp, 'id' = $temp1)); } On Wed, Dec 30, 2009 at 7:09 PM, dziobacz aaabbbcccda...@gmail.com wrote: Now they have different names but they should have the same names and different ID: input id=test1 type=checkbox name=test1/ input id=test2 type=checkbox name=test2/ input id=test2 type=checkbox name=test3/ On 30 Gru, 14:34, DEEPAK BHATIA toreachdee...@gmail.com wrote: Try this $m = 1; foreach ($this-getOption('param') as $i) { $temp = 'test'.$m; $m = $m + 1; $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = $temp)); } On Wed, Dec 30, 2009 at 6:43 PM, dziobacz aaabbbcccda...@gmail.com wrote: I still have: input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ So I can't do that what I want in Symfony forms and I must use normal forms ? :O On 30 Gru, 08:59, DEEPAK BHATIA toreachdee...@gmail.com wrote: Try this foreach ($this-getOption('param') as $i) { $temp = 'test'.$i; $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = $temp)); } On Wed, Dec 30, 2009 at 12:31 PM, dziobacz aaabbbcccda...@gmail.com wrote: Is it possible to change name widget ? I am doing that: foreach ($this-getOption('param') as $i) { $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = 'test')); } but I get: input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ ID is the same as name !! -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com symfony-users%252bunsubscr...@googlegroups.comsymfony-users%25252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: change name of checkbox without change id
heh - again wrong :) input id=temp1 type=checkbox name=test1/ input id=temp2 type=checkbox name=test2/ input id=temp3 type=checkbox name=test3/ On 30 Gru, 14:42, DEEPAK BHATIA toreachdee...@gmail.com wrote: Try this $m = 1; foreach ($this-getOption('param') as $i) { $temp = 'test'.$m; $temp1 = 'temp'.$m; $m = $m + 1; $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = $temp, 'id' = $temp1)); } On Wed, Dec 30, 2009 at 7:09 PM, dziobacz aaabbbcccda...@gmail.com wrote: Now they have different names but they should have the same names and different ID: input id=test1 type=checkbox name=test1/ input id=test2 type=checkbox name=test2/ input id=test2 type=checkbox name=test3/ On 30 Gru, 14:34, DEEPAK BHATIA toreachdee...@gmail.com wrote: Try this $m = 1; foreach ($this-getOption('param') as $i) { $temp = 'test'.$m; $m = $m + 1; $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = $temp)); } On Wed, Dec 30, 2009 at 6:43 PM, dziobacz aaabbbcccda...@gmail.com wrote: I still have: input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ So I can't do that what I want in Symfony forms and I must use normal forms ? :O On 30 Gru, 08:59, DEEPAK BHATIA toreachdee...@gmail.com wrote: Try this foreach ($this-getOption('param') as $i) { $temp = 'test'.$i; $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = $temp)); } On Wed, Dec 30, 2009 at 12:31 PM, dziobacz aaabbbcccda...@gmail.com wrote: Is it possible to change name widget ? I am doing that: foreach ($this-getOption('param') as $i) { $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = 'test')); } but I get: input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ ID is the same as name !! -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com symfony-users%252bunsubscr...@googlegroups.comsymfony-users%25252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: change name of checkbox without change id
ok thx - now is ok - only 1 thing: not: $temp = 'test'.$m; but: $temp = 'test'; :) On 30 Gru, 14:42, DEEPAK BHATIA toreachdee...@gmail.com wrote: Try this $m = 1; foreach ($this-getOption('param') as $i) { $temp = 'test'.$m; $temp1 = 'temp'.$m; $m = $m + 1; $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = $temp, 'id' = $temp1)); } On Wed, Dec 30, 2009 at 7:09 PM, dziobacz aaabbbcccda...@gmail.com wrote: Now they have different names but they should have the same names and different ID: input id=test1 type=checkbox name=test1/ input id=test2 type=checkbox name=test2/ input id=test2 type=checkbox name=test3/ On 30 Gru, 14:34, DEEPAK BHATIA toreachdee...@gmail.com wrote: Try this $m = 1; foreach ($this-getOption('param') as $i) { $temp = 'test'.$m; $m = $m + 1; $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = $temp)); } On Wed, Dec 30, 2009 at 6:43 PM, dziobacz aaabbbcccda...@gmail.com wrote: I still have: input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ So I can't do that what I want in Symfony forms and I must use normal forms ? :O On 30 Gru, 08:59, DEEPAK BHATIA toreachdee...@gmail.com wrote: Try this foreach ($this-getOption('param') as $i) { $temp = 'test'.$i; $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = $temp)); } On Wed, Dec 30, 2009 at 12:31 PM, dziobacz aaabbbcccda...@gmail.com wrote: Is it possible to change name widget ? I am doing that: foreach ($this-getOption('param') as $i) { $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = 'test')); } but I get: input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ ID is the same as name !! -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com symfony-users%252bunsubscr...@googlegroups.comsymfony-users%25252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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.
Re: [symfony-users] change name of checkbox without change id
Why don't you use sfWidgetFormChoice with expanded = true and multiple = true? http://www.symfony-project.org/forms/1_2/en/A-Widgets#chapter_a_sub_choice_representations On Wed, Dec 30, 2009 at 08:01, dziobacz aaabbbcccda...@gmail.com wrote: Is it possible to change name widget ? I am doing that: foreach ($this-getOption('param') as $i) { $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = 'test')); } but I get: input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ ID is the same as name !! -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: How to use Filter Forms without Admin Generator?
By my self: buildQuery(). Javi On Dec 29, 1:53 pm, tirengarfio tirengar...@gmail.com wrote: In the first link i pasted in my post before there is this code: public function executeFiltrar(sfWebRequest $request) { $this-filtro = new ClienteFormFilter(); // Build a criteria object withe the value of the filters $criteria = $this-filtro-buildCriteria($request-getParameter ('cliente_filters')); $this-clientes = ClientePeer::doSelect($criteria); $this-setTemplate('index'); } Is there anything equivalent to buildCriteria() in Doctrine? Javi On Dec 28, 9:18 pm,tirengarfiotirengar...@gmail.com wrote: hi, maybe these links can be interesting for someone: http://axiacore.com/blog/2009/09/trabajando-con-filtros-en-symfony-i/... Are in spanish... Anyway, any reason for not implementing the Filter button functionality? Javi On Dec 11, 11:03 am, cosmy c.zec...@gmail.com wrote: Interesting topic.. would you mind posting the solution when you have done? Thnak you in advance On 10 Dic, 08:48, Christopher Schnell ty...@mda.ch wrote: Yeah, I thought so. But I can use the fieldset of the filter form anyway. I was mainly curious because the form filters are nowhere described, and I use filters to let the user select the records quite often. So it would have come handy earlier, but i just didn't know how to use them. Maybe I could make a documentation request :-) Regards, Christopher. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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.
Re: [symfony-users] Re: change name of checkbox without change id
I guess this holds for radiobutton and not checkboxAre you want to it for checkbox ? Do you want to select one checkbox at a time ? On Wed, Dec 30, 2009 at 7:09 PM, dziobacz aaabbbcccda...@gmail.com wrote: Now they have different names but they should have the same names and different ID: input id=test1 type=checkbox name=test1/ input id=test2 type=checkbox name=test2/ input id=test2 type=checkbox name=test3/ On 30 Gru, 14:34, DEEPAK BHATIA toreachdee...@gmail.com wrote: Try this $m = 1; foreach ($this-getOption('param') as $i) { $temp = 'test'.$m; $m = $m + 1; $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = $temp)); } On Wed, Dec 30, 2009 at 6:43 PM, dziobacz aaabbbcccda...@gmail.com wrote: I still have: input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ So I can't do that what I want in Symfony forms and I must use normal forms ? :O On 30 Gru, 08:59, DEEPAK BHATIA toreachdee...@gmail.com wrote: Try this foreach ($this-getOption('param') as $i) { $temp = 'test'.$i; $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = $temp)); } On Wed, Dec 30, 2009 at 12:31 PM, dziobacz aaabbbcccda...@gmail.com wrote: Is it possible to change name widget ? I am doing that: foreach ($this-getOption('param') as $i) { $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = 'test')); } but I get: input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ ID is the same as name !! -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com symfony-users%252bunsubscr...@googlegroups.comsymfony-users%25252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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.
Re: [symfony-users] Re: change name of checkbox without change id
Try this $m = 1; foreach ($this-getOption('param') as $i) { $temp = 'test'.$m; $temp1 = 'temp'; $m = $m + 1; $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = $temp, 'id' =$temp1)); } On Wed, Dec 30, 2009 at 7:19 PM, dziobacz aaabbbcccda...@gmail.com wrote: heh - again wrong :) input id=temp1 type=checkbox name=test1/ input id=temp2 type=checkbox name=test2/ input id=temp3 type=checkbox name=test3/ On 30 Gru, 14:42, DEEPAK BHATIA toreachdee...@gmail.com wrote: Try this $m = 1; foreach ($this-getOption('param') as $i) { $temp = 'test'.$m; $temp1 = 'temp'.$m; $m = $m + 1; $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = $temp, 'id' = $temp1)); } On Wed, Dec 30, 2009 at 7:09 PM, dziobacz aaabbbcccda...@gmail.com wrote: Now they have different names but they should have the same names and different ID: input id=test1 type=checkbox name=test1/ input id=test2 type=checkbox name=test2/ input id=test2 type=checkbox name=test3/ On 30 Gru, 14:34, DEEPAK BHATIA toreachdee...@gmail.com wrote: Try this $m = 1; foreach ($this-getOption('param') as $i) { $temp = 'test'.$m; $m = $m + 1; $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = $temp)); } On Wed, Dec 30, 2009 at 6:43 PM, dziobacz aaabbbcccda...@gmail.com wrote: I still have: input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ So I can't do that what I want in Symfony forms and I must use normal forms ? :O On 30 Gru, 08:59, DEEPAK BHATIA toreachdee...@gmail.com wrote: Try this foreach ($this-getOption('param') as $i) { $temp = 'test'.$i; $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = $temp)); } On Wed, Dec 30, 2009 at 12:31 PM, dziobacz aaabbbcccda...@gmail.com wrote: Is it possible to change name widget ? I am doing that: foreach ($this-getOption('param') as $i) { $this-widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' = 'test')); } but I get: input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ input id=test type=checkbox name=test/ ID is the same as name !! -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com symfony-users%252bunsubscr...@googlegroups.comsymfony-users%25252bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com symfony-users%252bunsubscr...@googlegroups.comsymfony-users%25252bunsubscr...@googlegroups.com symfony-users%252bunsubscr...@googlegroups.comsymfony-users%25252bunsubscr...@googlegroups.com symfony-users%25252bunsubscr...@googlegroups.comsymfony-users%2525252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com symfony-users%252bunsubscr...@googlegroups.comsymfony-users%25252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com . For more options, visit this
Re: [symfony-users] sfDoctrineGuard and behaviors
On 30.12.2009, at 13:00, Jonathan Wage wrote: You can't do it via the schema, but at any point during bootstrap you can retrieve the table instance of a model and add/change things with it. Or you can override the setup method and do it there like you said. ok .. thats a pitty. i also stumbled over the fact that the sfDoctrineGuard schema.yml defines the id columns explicitly using integer(4), while Doctrine's implicit definition is integer(8). would be nice to be able to change stuff like this. maybe it could be possible to define merge key aliases for the various models and allow the user to optionally supply a yaml file that is appended at the end or something like that. regards, Lukas Kahwe Smith m...@pooteeweet.org -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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.
Re: [symfony-users] Re: The user profile class sfGuardUserProfile does not exist.
Hi Zeek, I'm using a windows system, xp. not linux. From: Zeek z...@thesecondroad.org To: symfony users symfony-users@googlegroups.com Sent: Wed, December 30, 2009 12:16:28 AM Subject: [symfony-users] Re: The user profile class sfGuardUserProfile does not exist. Thanks for your response. In my lib/model I have SfGuardUserProfile not sfGuardUserProfile, but all the other classes start with a capital letter. Do I need to specifically change this to small letters and I have other projects where the profile class was SfGuardUserProfile and they all seem to work fine . If you on a Unix/Linux system then file includes will be case sensitive. I believe this is the problem you are having. If the software goes looking for sfGuardUserProfile, it will not recognize SfGuardUserProfile as a valid alternative. On Dec 29, 4:11 pm, Sorom Uzomah delsa...@yahoo.com wrote: Hi Zeek, Thanks for your response. In my lib/model I have SfGuardUserProfile not sfGuardUserProfile, but all the other classes start with a capital letter. Do I need to specifically change this to small letters and I have other projects where the profile class was SfGuardUserProfile and they all seem to work fine . I'll try your other suggestions and see what happens. Thanks again. From: Zeek z...@thesecondroad.org To: symfony users symfony-users@googlegroups.com Sent: Mon, December 28, 2009 11:20:12 PM Subject: [symfony-users] Re: The user profile class sfGuardUserProfile does not exist. Sorom, what do you get if you do this: echo get_class($this-getUser()-getGuardUser()-getProfile()); Do you get an error when this is called? echo get_class($this-getUser()-getGuardUser()); If you look in lib/model do you see a sfGuardUserProfile class? It is case sensitive. Be sure you do not have SfGuardUserProfile. On Dec 28, 3:52 pm, Sorom Uzomah delsa...@yahoo.com wrote: Hello, I am using symfony 1.2.10 with sfGuardPlugin 3.1.3 , I have created a profile class sfGuardUserProfile through my schema.yml. When I try to use $this-getUser()-getGuardUser()-getProfile()-getId() in my action class as described in the readme file for sfGuardPlugin I get the following error The user profile class sfGuardUserProfile does not exist. even when I try to use the proxy method i get the same response. I've tried rebuilding my model and I've even run the propel:build-all as well as cleared my cache etc I believe its a simple solution but just cant get it to work. My schema.yml is below. Thanks for any help i can get. # config/schema.yml propel: sf_guard_user_profile: id: ~ user_id: { type: integer, foreignTable: sf_guard_user, foreignReference: id } title: { type: varchar(255) } last_name: { type: varchar(255) } first_name: { type: varchar(255) } middle_name: { type: varchar(255) } facebook_uid: { type: integer } email: { type: varchar(255) } email_hash: { type: varchar(255) } created_at: ~ updated_at: ~ description: id: ~ sf_guard_user_profile_id: { type: integer, foreignTable: sf_guard_user_profile, foreignReference: id } content: { type: longvarchar } range: { type: varchar(255) } #global, friends, hidden created_at: ~ updated_at: ~ comment: id: ~ description_id: { type: integer, foreignTable: description, foreignReference: id } content: { type: longvarchar } created_at: ~ updated_at: ~ picture: id: ~ description_id: { type: integer, foreignTable: description, foreignReference: id } name: { type: longvarchar } location: { type: longvarchar } created_at: ~ updated_at: ~ -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: Updating data with Doctrine Migations
I am able to get the data migrated, but it is step 3 that I am trying to find the most correct but direct method (using Doctrine migrations). The issue with the example at http://www.doctrine-project.org/documentation/cookbook/1_0/en/symfony-and-doctrine-migrations is that it requires the models to be updated twice, once before the migration and again after the migration. This does not seem to work well for a distributed team, nor for deployment to production systems as the upgrade is then a two step (two installed packages) upgrade instead of a single testable and deployable package. My current method is to use Doctrine_Manager::connection()-getDbh() and then use PDO to migrate the data using standard SQL which then doesn't need the old version of the model classes, but I was wondering if there was a more proper way to do it via Doctrine or if there is no direct support for this type of migration (yet). The other option I was looking at was copying the old model to a new class (uniquely named by the version) and using that during the migration, but that seemed unclean as well. David -- On Dec 26, 3:10 pm, Alexandre Salomé alexandre.sal...@gmail.com wrote: Your steps for the migration : - Create the new table with your DocumentState class - Add a new column state_id for your foreign key - Foreach instance, find/create a state object and associate it. - Delete your state_ columns Is it OK ? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?
is this the _latest_ sfFormExtraPlugin ? On 30 Dic, 13:51, axel at axel.zu...@gmail.com wrote: no one here with the same problem? any ideas? thx On 29 Dez., 13:58, axel at axel.zu...@gmail.com wrote: after upgrading to symonfy 1.3 and sfFormExtraPlugin 1.1.1 the format option is no longer supported by sfWidgetFormJQuery $this-setWidgets(array( 'from_date' = new sfWidgetFormJQueryDate(array( 'image'='/images/icons/calendar_view_month.gif', 'format' = '%day%-%month%-%year%', 'culture' = 'de_AT') ), )); is there another way to change the date format (from mm-dd- to dd- mm-)? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: How to use Filter Forms without Admin Generator?
I use it like the following: public function executeFooList(sfWebRequest $request) { $query = Doctrine::getTable('Foo')-createQuery(); $filter_values = $request-getParameter('foo_filters'); $this-form = new FooFormFilter($filter_values); // filters default values if exist $this-form-setQuery($query); // pass the query to the form filter if ($filter_values) { $this-form-bind($filter_values); if ($this-form-isValid()) { $query = $this-form-getQuery(); // apply filters to the query } } $this-pager = new sfDoctrinePager('Foos', 10); $this-pager-setQuery($query); $this-pager-setPage($request-getParameter('page', 1)); $this-pager-init(); } On 30 Dic, 16:58, tirengarfio tirengar...@gmail.com wrote: By my self: buildQuery(). Javi On Dec 29, 1:53 pm, tirengarfio tirengar...@gmail.com wrote: In the first link i pasted in my post before there is this code: public function executeFiltrar(sfWebRequest $request) { $this-filtro = new ClienteFormFilter(); // Build a criteria object withe the value of the filters $criteria = $this-filtro-buildCriteria($request-getParameter ('cliente_filters')); $this-clientes = ClientePeer::doSelect($criteria); $this-setTemplate('index'); } Is there anything equivalent to buildCriteria() in Doctrine? Javi On Dec 28, 9:18 pm,tirengarfiotirengar...@gmail.com wrote: hi, maybe these links can be interesting for someone: http://axiacore.com/blog/2009/09/trabajando-con-filtros-en-symfony-i/... Are in spanish... Anyway, any reason for not implementing the Filter button functionality? Javi On Dec 11, 11:03 am, cosmy c.zec...@gmail.com wrote: Interesting topic.. would you mind posting the solution when you have done? Thnak you in advance On 10 Dic, 08:48, Christopher Schnell ty...@mda.ch wrote: Yeah, I thought so. But I can use the fieldset of the filter form anyway. I was mainly curious because the form filters are nowhere described, and I use filters to let the user select the records quite often. So it would have come handy earlier, but i just didn't know how to use them. Maybe I could make a documentation request :-) Regards, Christopher. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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.
Re: [symfony-users] sfDoctrineGuard and behaviors
I don't get it, I'm using the functionality to add new columns or change existing column definitions in the projects schema.yml inside my projects successfully! But maybe you meant something else and it's me who doesn't get it? Cheers, Daniel Sent from my iPhone On Dec 30, 2009, at 5:10 PM, Lukas Kahwe Smith m...@pooteeweet.org wrote: On 30.12.2009, at 13:00, Jonathan Wage wrote: You can't do it via the schema, but at any point during bootstrap you can retrieve the table instance of a model and add/change things with it. Or you can override the setup method and do it there like you said. ok .. thats a pitty. i also stumbled over the fact that the sfDoctrineGuard schema.yml defines the id columns explicitly using integer(4), while Doctrine's implicit definition is integer(8). would be nice to be able to change stuff like this. maybe it could be possible to define merge key aliases for the various models and allow the user to optionally supply a yaml file that is appended at the end or something like that. regards, Lukas Kahwe Smith m...@pooteeweet.org -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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 . -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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.
Re: [symfony-users] sfDoctrineGuard and behaviors
Sorry, forgot to add to my reply that you'll have to use sf1.3 for all of this to work. Cheers, Dani Sent from my iPhone On Dec 30, 2009, at 5:10 PM, Lukas Kahwe Smith m...@pooteeweet.org wrote: On 30.12.2009, at 13:00, Jonathan Wage wrote: You can't do it via the schema, but at any point during bootstrap you can retrieve the table instance of a model and add/change things with it. Or you can override the setup method and do it there like you said. ok .. thats a pitty. i also stumbled over the fact that the sfDoctrineGuard schema.yml defines the id columns explicitly using integer(4), while Doctrine's implicit definition is integer(8). would be nice to be able to change stuff like this. maybe it could be possible to define merge key aliases for the various models and allow the user to optionally supply a yaml file that is appended at the end or something like that. regards, Lukas Kahwe Smith m...@pooteeweet.org -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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 . -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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.
Re: [symfony-users] sfDoctrineGuard and behaviors
On 31.12.2009, at 01:24, Daniel Lohse wrote: I don't get it, I'm using the functionality to add new columns or change existing column definitions in the projects schema.yml inside my projects successfully! But maybe you meant something else and it's me who doesn't get it? I am talking to the schema.yml bundled with sfDoctrineGuardPlugin. I am sure other plugins also suffer from this limitation. Oddly enough it seems that other plugins can modify other plugins schema.yml (seeing that sfDoctrineExtraPlugin seems to be adding an email field to the sfDoctrineGuardPlugin schema.yml). regards, Lukas Kahwe Smith m...@pooteeweet.org -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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.
Re: [symfony-users] sfDoctrineGuard and behaviors
Check for symfony core events (about configuration loaded or such thing I think -feeling), then you'll be able to modify tables definitions (retrieve table object then addColumn dynamically, not via configuration). That is what Daniel was speaking about I believe. Cheers. Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Thu, Dec 31, 2009 at 1:27 AM, Lukas Kahwe Smith m...@pooteeweet.orgwrote: On 31.12.2009, at 01:24, Daniel Lohse wrote: I don't get it, I'm using the functionality to add new columns or change existing column definitions in the projects schema.yml inside my projects successfully! But maybe you meant something else and it's me who doesn't get it? I am talking to the schema.yml bundled with sfDoctrineGuardPlugin. I am sure other plugins also suffer from this limitation. Oddly enough it seems that other plugins can modify other plugins schema.yml (seeing that sfDoctrineExtraPlugin seems to be adding an email field to the sfDoctrineGuardPlugin schema.yml). regards, Lukas Kahwe Smith m...@pooteeweet.org -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?
yes I use sfFormExtraPlugin 1.1.1, the latest stable version On 30 Dez., 19:29, gino pilotino spammm...@gmail.com wrote: is this the _latest_ sfFormExtraPlugin ? On 30 Dic, 13:51, axel at axel.zu...@gmail.com wrote: no one here with the same problem? any ideas? thx On 29 Dez., 13:58, axel at axel.zu...@gmail.com wrote: after upgrading to symonfy 1.3 and sfFormExtraPlugin 1.1.1 the format option is no longer supported by sfWidgetFormJQuery $this-setWidgets(array( 'from_date' = new sfWidgetFormJQueryDate(array( 'image'='/images/icons/calendar_view_month.gif', 'format' = '%day%-%month%-%year%', 'culture' = 'de_AT') ), )); is there another way to change the date format (from mm-dd- to dd- mm-)? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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.
Re: [symfony-users] sfDoctrineGuard and behaviors
On 31.12.2009, at 01:35, Stéphane wrote: Check for symfony core events (about configuration loaded or such thing I think -feeling), then you'll be able to modify tables definitions (retrieve table object then addColumn dynamically, not via configuration). That is what Daniel was speaking about I believe. right. i can then just as well modify the model itself, which imho is a lot cleaner and logical. however i would much rather have this all done inside the projects schema.yml file. for example i define a few standard behaviors inside my schema.yml file, which i can reuse via the merge key alias inside my schema.yml file [1]: actAs: actAs Timestampable: ~ Blameable: Blameable default: null blameVar: user_id listener: BlameableCustomListener columns: created: name: author_id length: 4 updated: disabled: true relations: created: class: sfGuardUser disabled: false name: Author Versionable: actAs: Blameable: : *Blameable now i have to duplicate this configuration into a model [2]: $blameable0 = new Doctrine_Template_Blameable(array( 'default' = NULL, 'blameVar' = 'user_id', 'listener' = 'BlameableCustomListener', 'columns' = array( 'created' = array( 'name' = 'author_id', 'length' = 4, 'options' = array( 'notnull' = false, ) ), 'updated' = array( 'disabled' = true, ), ), 'relations' = array( 'created' = array( 'class' = 'sfGuardUser', 'disabled' = false, 'name' = 'Author', ), ), )); $this-actAs($blameable0); i think we can all agree that this situation isnt ideal. at the same time there is a somewhat clean work around, so it also not the end of the world. well there i start hitting a wall however is if for example i would rather use a bigint (*) for the id column in sfDoctrineGuard as its currently hardcoded to be a normal interger [3]: sfGuardUser: actAs: [Timestampable] columns: id: type: integer(4) primary: true autoincrement: true regards, Lukas Kahwe Smith m...@pooteeweet.org (*) yes i know that i dont need bigints here, but i am lazy and want to keep the id types consistent in my application and so this means i also need to hardcode the id columns explicitly, since if i leave them out doctrine automatically adds them as a bitint [1] http://code.google.com/p/uninformed/source/browse/trunk/config/doctrine/schema.yml [2] http://code.google.com/p/uninformed/source/browse/trunk/lib/model/doctrine/sfDoctrineGuardPlugin/sfGuardUser.class.php [3] http://trac.symfony-project.org/browser/plugins/sfDoctrineGuardPlugin/branches/1.3/config/doctrine/schema.yml -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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.
Re: [symfony-users] Error message format
I just tried it and it works really well! Thank you! :) On Wed, Dec 30, 2009 at 10:35 PM, Alexandru-Emil Lupu gang.al...@gmail.com wrote: in my Form class object i ave added : public function getErrors($v = '') { foreach ($this-getErrorSchema() as $field=$error ) { foreach ($error-getErrors() as $currentError) { $v .= 'li'.sprintf(In the quot;%squot; tab you have an error:br strong%s/strong, $field , $currentError-getMessage()).'/li'; } } return $v; } After that, in my view i have added : ?php if ($form-hasErrors()):? div id=contact_form_errors ul?php echo $form-getErrors()?/ul /div ?php endif;? As my implementation has different tabs, your output (copy pasted from me) will output you some error messages like: In the Contact tab you have an error: Name: required Alecs On Wed, Dec 30, 2009 at 11:02 AM, Alexandru-Emil Lupu gang.al...@gmail.com wrote: I have done something like that. I will post my solution later today, as i haven't yet start my computer Alecs sent via htc magic On Dec 30, 2009 1:37 AM, Sid Bachtiar sid.bacht...@gmail.com wrote: Hi all, I embedded a form inside another form, and I try to print errors (of all the forms combined) like this in the template: ?php foreach ($form-getErrorSchema()-getErrors() as $error): ? *?php echo $error-getMessage(); ?br/ ?php endforeach; ? It is able to print all the errors as expected so that's good. But for the embedded form fields, the required error message always show: *0 [Reply to Sid is missing.] Instead of just: * Reply to Sid is missing The 0 is the field name. I want to get rid of it (and the brackets) and tried many ways without success. Does anyone know how to just print the error message without the field name and the brackets?? Cheers, Sid -- Blue Horn Ltd - System Development http://bluehorn.co.nz -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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. -- Have a nice day! Alecs As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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. -- Blue Horn Ltd - System Development http://bluehorn.co.nz -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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.