[symfony-users] Re: Issue when removing created_at form's field

2009-04-04 Thread Adrien Mogenet
I tried but I will retry from scratch... [ I don't understand why the topic changed so suddenly ;-) ] -- Adrien On 3 avr, 23:22, Arnold Ispan ispanarn...@gmail.com wrote: Hello, Maybe the solution is to rebuild forms and filters with *propel:build-forms *and  *propel:build-filters* On

[symfony-users] resizing image during upload

2009-04-04 Thread dziobacz
How can I change size of image during upload ? I use sfImageTransformPlugin to do that. //take information about uploading image: $code = md5(uniqid(mt_rand())); $file = $this-form-getValue('image'); $filename = $code; $extension = $file-getExtension($file-getOriginalExtension()); $newname =

[symfony-users] Re: resizing image during upload

2009-04-04 Thread Miloslav Kmeť
if ($file instanceof sfValidatedFile) { $image = new sfImage($file-getTempName()); } --~--~-~--~~~---~--~~ 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] [sfForms] set a field required (or not) ONLY if a checkbox is checked

2009-04-04 Thread Sylvain Deloux
Hi, I'm using sfForms (with symfony 1.2) to create a form. I'd like to set a field required ONLY if a checkbox is checked, otherwise it doesn't not to be required. I'm looking on the forms documentation, but without success. Anybody could help me ? Thanks, Sylvain

[symfony-users] Re: resizing image during upload

2009-04-04 Thread dziobacz
THX - it works !! xD On 4 Kwi, 12:39, Miloslav Kmeť miloslav.k...@gmail.com wrote: if ($file instanceof sfValidatedFile) {    $image = new sfImage($file-getTempName()); } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[symfony-users] Tr : [symfony-fr] [sfForms] rendre un champ requis (ou non) suivant l'état d'un autre champ

2009-04-04 Thread Loïc Vernet
Tu devrais regarder du coté de postValidator. ++ COil - Message transféré De : Sylvain Deloux sylvain.del...@gmail.com À : Symfony-fr symfony...@googlegroups.com Envoyé le : Samedi, 4 Avril 2009, 12h51mn 54s Objet : [symfony-fr] [sfForms] rendre un champ requis (ou non) suivant

[symfony-users] lightbox in symfony - how can I use it ?

2009-04-04 Thread dziobacz
I found sfLightBoxPlugin: http://www.symfony-project.org/plugins/sfLightboxPlugin I download it from this website, unzipped and moved it to \plugins directory, in \plugins\sfLightboxPlugin I have folders: config, lib, modules, web. I don't need to move files from these folders to

[symfony-users] testing code in plugins

2009-04-04 Thread Matthias N.
Hi, can someone give some information about how to write and execute functional tests as well as unit tests in plugins and how to execute all or particular ones? I couldn't find any information about that. Any information would be very appreciated. regards, Matthias

[symfony-users] Re: testing code in plugins

2009-04-04 Thread Bernhard Schussek
Hi Matthias, If you want to execute particular tests, you can just execute them from the console using php. E.g. $ php plugins/myPlugin/test/unit/myClassTest.php If you want to execute sets of tests, you have to create PHP files that execute these sets, and then execute these PHP files. The

Re : [symfony-users] lightbox in symfony - how can I use it ?

2009-04-04 Thread Loïc Vernet
Hi, To summaruze the helpers make the foreach for you... The examples are quit explicit... Check out the exemple files witch are in the sfLightbox/ module of the plugin. ++ COil De : dziobacz aaabbbcccda...@gmail.com À : symfony users

Re: Re : [symfony-users] lightbox in symfony - how can I use it ?

2009-04-04 Thread dziobacz
But all lightbox files should be in \plugins\sfLightboxPlugin or I should for example move lightbox images to \web\images, lightbox css to \web\css etc ?? On 4 Kwi, 15:59, Loïc Vernet qrf_c...@yahoo.fr wrote: Hi, To summaruze the helpers make the foreach for you... The examples are

Re : Re : [symfony-users] lightbox in symfony - how can I use it ?

2009-04-04 Thread Loïc Vernet
Well if you have manually downloaded the plugin, yes you must copy the ressources in /web or use the plugin:publish-assets symfony task You should read the plgind chatpter of the doc and Jobeet. ++ De : dziobacz aaabbbcccda...@gmail.com À : symfony

Re: Re : Re : [symfony-users] lightbox in symfony - how can I use it ?

2009-04-04 Thread dziobacz
I have read but the instruction isn't simply - how can I download it not manualy ? What should I write in console ? You haven't wrote it in your tutorial. On 4 Kwi, 17:25, Loïc Vernet qrf_c...@yahoo.fr wrote: Well if you have manually downloaded the plugin, yes you must copy the

Re: Re : Re : [symfony-users] lightbox in symfony - how can I use it ?

2009-04-04 Thread dziobacz
You have wrote: If you don't want to use the following web resources paths : * /sfLightboxPlugin/js/ * /sfLightboxPlugin/css/ * /sfLightboxPlugin/javascript/ So it means that I shouldn't move js and css to \web directory but leave them in sfLightboxPlugin

Re: Re : [symfony-users] lightbox in symfony - how can I use it ?

2009-04-04 Thread Pablo Godel
are there plans to update this plugin for symfony 1.2.x ? Pablo On Sat, Apr 4, 2009 at 9:59 AM, Loïc Vernet qrf_c...@yahoo.fr wrote: Hi, To summaruze the helpers make the foreach for you... The examples are quit explicit... Check out the exemple files witch are in the sfLightbox/ module

[symfony-users] Re: Add Foreign Key to mysql table

2009-04-04 Thread DEEPAK BHATIA
Hi, The problem is solved when I run below command ALTER TABLE projecttype_table TYPE=InnoDB; Thanks Deepak Bhatia On 4/2/09, whalexis alexis.degrugill...@gmail.com wrote: Hi you should have a look at this http://dev.mysql.com/doc/refman/5.1/en/innodb-foreign-key-constraints.html

Re : Re : [symfony-users] lightbox in symfony - how can I use it ?

2009-04-04 Thread Loïc Vernet
Your wishes will become true in a few minutes... ^^ De : Pablo Godel pgo...@gmail.com À : symfony-users@googlegroups.com Envoyé le : Samedi, 4 Avril 2009, 18h40mn 48s Objet : Re: Re : [symfony-users] lightbox in symfony - how can I use it ? are there plans

Re: Re : [symfony-users] lightbox in symfony - how can I use it ?

2009-04-04 Thread dziobacz
Ok - it works but it wasn't easy, tutorial is hard to understand - it is mine easier tutorial: download lightbox from: http://www.symfony-project.org/plugins/sfLightboxPlugin unzip and again unzip - you should use .zip format, not .tgz format - I had to unzipped it two times in windows ;) Create

Re: Re : Re : [symfony-users] lightbox in symfony - how can I use it ?

2009-04-04 Thread dziobacz
Ok - it works but it wasn't easy, tutorial is hard to understand - it is mine easier tutorial: download lightbox from: http://www.symfony-project.org/plugins/sfLightboxPlugin unzip and again unzip - (to AUTHOR this plugin: you should use .zip format, not .tgz format - I had to unzipped it two

Re: Re : Re : [symfony-users] lightbox in symfony - how can I use it ?

2009-04-04 Thread dziobacz
Ok - it works but it wasn't easy, tutorial is hard to understand - it is mine easier tutorial: download lightbox from: http://www.symfony-project.org/plugins/sfLightboxPlugin unzip and again unzip - you should use .zip format, not .tgz format - I had to unzipped it two times in windows ;) Create

[symfony-users] Re: [sfForms] set a field required (or not) ONLY if a checkbox is checked

2009-04-04 Thread Gandalf
This is what I did in one of my forms: inside the form configure method: $post_validators [] = new gStep3Validator ( sfConfig::get (app_procurement_wizard_select_prefix).$provision - id, sfConfig::get

[symfony-users] Re: testing code in plugins

2009-04-04 Thread Matthias N.
On 4 Apr., 15:13, Bernhard Schussek bschus...@gmail.com wrote: Hi Matthias, If you want to execute particular tests, you can just execute them from the console using php. E.g. $ php plugins/myPlugin/test/unit/myClassTest.php Hi Bernhard, thanks for your detailed information! Let's hope the

[symfony-users] sfLightboxPlugin/1_0_9 released

2009-04-04 Thread Loïc Vernet
The plugin and README was updated for symfony 1.2.x and my new friend dziobacz ^^ --http://www.symfony-project.org/plugins/sfLightboxPlugin/1_0_9?tab=plugin_readme ++ COil De : Pablo Godel pgo...@gmail.com À : symfony-users@googlegroups.com Envoyé le :

[symfony-users] sfDB4toPropelPlugin/1_0_3 released

2009-04-04 Thread Loïc Vernet
Hi symfonians, I have released the 1.0.3 version of the sfDB4toPropelPlugin plugin some days ago, -- http://www.symfony-project.org/plugins/sfDB4toPropelPlugin/1_0_3 It introduce a new interesting functionality that allows you to merge plugin schemas. What does this mean ? You have your DB4

[symfony-users] Re: sfLightboxPlugin/1_0_9 released

2009-04-04 Thread dziobacz
LOL xD 1. Tutorial is much better 2. Plugin doesn't work :) Some mistake is in \plugins\sfLightboxPlugin \lib\helper\LightboxHelper.php - I am sure because with previous version of LightboxHelper.php everything is ok. 3. How can I add css style to delete borders around image (in css class it

Re: Re : [symfony-users] lightbox in symfony - how can I use it ?

2009-04-04 Thread Eno
On Sat, 4 Apr 2009, dziobacz wrote: unzip and again unzip - you should use .zip format, not .tgz format - I had to unzipped it two times in windows ;) Or install Cygwin so you have nice Unix tools like tar. --~--~-~--~~~---~--~~ You received this message

Re : [symfony-users] Re: sfLightboxPlugin/1_0_9 released

2009-04-04 Thread Loïc Vernet
I have corrected the helper and README for symfony 1.0.x. in SVN. Moreover the Prototype version bundled with symfony 1.0 (1.5.0.0) is not supported by Lightbox 2.0.4 , so you will have to upgrade your prototype version (you can also copy/paste the /web/sf folder of the symfony 1.1 sandbox into

[symfony-users] Re: testing code in plugins

2009-04-04 Thread Bernhard Schussek
Hi Matthias, I'm already using the sfTaskExtraPlugin. The problem I actually had was thet the bootstrap scripts were not working out of the box for me as they don't have access to the symfony libs by default.. Yeah, that's one thing I forgot to mention. You need to export the path variable

Re: Re : [symfony-users] Re: sfLightboxPlugin/1_0_9 released

2009-04-04 Thread Pablo Godel
Thanks a lot! I am sure I will use it in one of the sites I am currently working on. Pablo On Sat, Apr 4, 2009 at 7:11 PM, Loïc Vernet qrf_c...@yahoo.fr wrote: I have corrected the helper and README for symfony 1.0.x. in SVN. Moreover the Prototype version bundled with symfony 1.0 (1.5.0.0)

[symfony-users] how do you create an OR statement using Propel?

2009-04-04 Thread Lawrence Krubner
If I want SQL that has an OR in it, like this: select * from teams where game_id=5 OR game_id=7 How do I get that with Propel. This is not covered in Chapter 8 of the Symfony book. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[symfony-users] Re: how do you create an OR statement using Propel?

2009-04-04 Thread Sid Bachtiar
Try something like: $c = new Criteria(); $c1 = $c-addNewCriterion(TeamsPeer::GAME_ID, 5); $c2 = $c-addNewCriterion(TeamsPeer::GAME_ID, 7); $c1-addOr($c2); $c-add($c1); On Sat, Apr 4, 2009 at 7:23 PM, Lawrence Krubner lkrub...@geocities.com wrote: If I want SQL that has an OR in it, like

[symfony-users] Re: how do you create an OR statement using Propel?

2009-04-04 Thread Ant Cunningham
$c = new Criteria(); $criterion = $c-getNewCriterion(GamePeer::ID, 5)-addOr($c-getNewCriterion(GamePeer::ID, 3); $c-add($criterion) In most inistance i think you can skip the criterion part as simply calling Critera::addOr() will work like so: $c = new Criteria(); $c-add(GamePeer::ID, 5);