[symfony-users] Code developed using symfony
All, One query about open source licence. Codes developed using symfony framework comes under same license which parent framework used.? Or symfony License only for the core framework code? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: symfony payment : project status
Hi Antoine, That is a great news! I have a small project coming that will require a Paypal solution, and I plan to use this Paypal plugin. Much appreciated and look forward to contribute later. Regards, Sid On Mon, Aug 3, 2009 at 8:41 PM, Antoine Leclercqantoine.lecle...@gmail.com wrote: Hi everyone, Recently we have been discussing about symfony payment plugins on this mailing list. I'm happy to tell you that this project is active (main thanks t...@johnny,�...@marijn, @Bernhard). 2 proof of concept plugins have been released in alpha state so far with basic support for PayPal (as an example). We are starting a third plugin for PayBox support. However there is still a lot to do on the global architecture part (what should or shouldn't be done) so if you are interested in this project, you are welcome to contribute. We have created a symfony-payment-developers group to ease development discussion. The last thread is available here : http://groups.google.com/group/symfony-payment-developers/browse_thread/thread/16e301c02c54f167 Other interesting links : - GitHub wiki page : http://wiki.github.com/letscod/sfPaymentPlugin - sfPaymentPlugin : http://www.symfony-project.org/plugins/sfPaymentPlugin - sfPaymentPayPalPlugin : http://www.symfony-project.org/plugins/sfPaymentPayPalPlugin All the best, Antoine http://wiki.github.com/letscod/sfPaymentPlugin http://letscod.com -- 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-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: link_to_remote page flicker
One thing we have done that seems to help is in the link_to_remote set an effect and make the duration larger than 0.5 seconds, example: ?php echo link_to_remote(Link text, array( url=module/action, update=div_to_update, script=true, complete=Effect.Appear('div_to_load', { duration : 0.5 }) )) ? - Original Message - From: DEEPAK BHATIA toreachdee...@gmail.com To: symfony-users@googlegroups.com Sent: Monday, August 3, 2009 10:45:31 AM GMT +02:00 Harare / Pretoria Subject: [symfony-users] link_to_remote page flicker Hi, I am using ajax helper link_to_remote in the main page. The page that gets displayed mentioned in link_to_remote has external javascript library calls. When the ajax called page loads, i get a flicker. Please let me know if any solution to avoid this. Regards Deepak --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] London PHP contractors?
Hi gang, Anybody in London currently seeking a contract? I've been asked to find a good PHP developer to work with me on a project I'm about to begin. Drop me a message if you'd like more details. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: nested forms
should i mail you all the pages? On Aug 3, 2:15 pm, Łukasz Wojciechowski lu...@pronet.lublin.pl wrote: I can try but You should provide us some code. Maybe a fragment which is responsible for embeddingforms. -- Best regards Łukasz Wojciechowski New Generation Software +48 602 214 629http://www.ngsoft.pl W dniu 3 sierpnia 2009 06:43 użytkownik mirfan m.irfa...@gmail.com napisał: Hi Łukasz Wojciechowski, Ryan Weaver blog is really helpful it solve alot of my problems, but i have another one issue is the same from Ryan blog i have get how to embed a single form multiple time but i have to embed multipleforms multiple times i use the same techniques for otherformsto embed but others are not saving let me explain it briefly: my master form is Patients and i have to include the followingforms multiple time PatientFamilyHistoryForm PatientHabitHistoryForm PatientImmunizationForm PatientMedicationList PatientProblemList so for i have tried for the PatientFamilyHistroyForm and PatientHistoryFormformsare embedded successfuly but not saving when i remove PatientHabitHistoryForm then PatientFamilyHistoryForm is working Fine. Please help. Regards, On Jul 31, 8:16 pm, pcummins patwcumm...@gmail.com wrote: Mirfan, It doesn't appear the core symfomy/doctrine team hasn't provided a standardized way (or definitive example) for working 1:mformsin doctrine yet (although all the parts are in place for symfony users to build these types offorms) Unfortunately this means that there are number of methods that people are using to get this this done. Here are a few complete methods that work: 1) Complete walk through that works:http://redotheoffice.com/?p=42 This has adding/deleting and it well written and easy to follow. I believe it only works with a single 1:Mnestedforms. 2) sfGuardUserPlugin:http://www.symfony-project.org/plugins/sfDoctrineUserPlugin This is a very thorough example with multiple 1:m on a single pages, plus add/delete buttons for the Mforms. However it required of overrideing methods to be implemented. If you can follow Stephens code, I recommend this method. I believe a few of the functions he has provided are now a part of the sfDoctrinePlugin, but I haven't had any problems extending his plugin using the symfony 1.2 branch) On Jul 30, 4:31 am, Łukasz Wojciechowski lu...@pronet.lublin.pl wrote: W dniu 30 lipca 2009 10:18 użytkownik mirfan m.irfa...@gmail.com napisał: thanks for your comments i have also the same problem only the last values are saved but i its strange if symfony give embedFormForEach facility then there should bw a way to mangae it. this is good question :) and also one more thing if i am using a loop then the loop will be limited to the counter but in my form i have no restriction how many time this is embedded what should i do for this. Regards, You should read Ryan Weaver blog posts: http://www.thatsquality.com/articles/can-the-symfony-forms-framework-.. I have used simmilar approach. On Jul 30, 1:23 pm, Łukasz Wojciechowski lu...@pronet.lublin.pl wrote: I have only one advice for You. Use embedForm instead of embedFormForEach. Few days back I also tried to create dynamic form and I got nowhere when using embedFormForEach. Practically You should be able to use embedForm many times in a loop and You should get the same effect. In my case when I was using embedFormForEach and there was more than one embedded form - only the last one was saved to database. When I used embedForm in a loop then all records was saved to database properly. good luck -- Best regards Łukasz Wojciechowski New Generation Software +48 602 214 629http://www.ngsoft.pl 2009/7/30 mirfan m.irfa...@gmail.com: please somebody help me i am really stucked here On Jul 29, 6:48 pm, mirfan m.irfa...@gmail.com wrote: hi everybody, i am using embedFormForEach and also embedForm: 1. embedForm save data without any problems but embedFormForeach is not saving the data in database. 2. i need unlimited time to embed form thats why i am using embedFormForEach but i need some help here: a. first is that some depends on database tables it will read modifiers how many they that muchformswill be embedded. example i have eye_symptoms table which have the following fields id symptom_title status the modifier table fields are id symptom_id onset value now if i add 5 values in modifier table i will need five formst embed. b. second problem with embedForEach is that i want to use
[symfony-users] Re: link_to_remote page flicker
Hi, It is still not helping. Thanks Deepak On Mon, Aug 3, 2009 at 2:20 PM, Gareth McCumskeygmccums...@gmail.com wrote: One thing we have done that seems to help is in the link_to_remote set an effect and make the duration larger than 0.5 seconds, example: ?php echo link_to_remote(Link text, array( url=module/action, update=div_to_update, script=true, complete=Effect.Appear('div_to_load', { duration : 0.5 }) )) ? - Original Message - From: DEEPAK BHATIA toreachdee...@gmail.com To: symfony-users@googlegroups.com Sent: Monday, August 3, 2009 10:45:31 AM GMT +02:00 Harare / Pretoria Subject: [symfony-users] link_to_remote page flicker Hi, I am using ajax helper link_to_remote in the main page. The page that gets displayed mentioned in link_to_remote has external javascript library calls. When the ajax called page loads, i get a flicker. Please let me know if any solution to avoid this. Regards Deepak --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: nested forms
here is it http://pastebin.com/me219634 On Aug 3, 3:34 pm, mirfan m.irfa...@gmail.com wrote: should i mail you all the pages? On Aug 3, 2:15 pm, Łukasz Wojciechowski lu...@pronet.lublin.pl wrote: I can try but You should provide us some code. Maybe a fragment which is responsible for embeddingforms. -- Best regards Łukasz Wojciechowski New Generation Software +48 602 214 629http://www.ngsoft.pl W dniu 3 sierpnia 2009 06:43 użytkownik mirfan m.irfa...@gmail.com napisał: Hi Łukasz Wojciechowski, Ryan Weaver blog is really helpful it solve alot of my problems, but i have another one issue is the same from Ryan blog i have get how to embed a single form multiple time but i have to embed multipleforms multiple times i use the same techniques for otherformsto embed but others are not saving let me explain it briefly: my master form is Patients and i have to include the followingforms multiple time PatientFamilyHistoryForm PatientHabitHistoryForm PatientImmunizationForm PatientMedicationList PatientProblemList so for i have tried for the PatientFamilyHistroyForm and PatientHistoryFormformsare embedded successfuly but not saving when i remove PatientHabitHistoryForm then PatientFamilyHistoryForm is working Fine. Please help. Regards, On Jul 31, 8:16 pm, pcummins patwcumm...@gmail.com wrote: Mirfan, It doesn't appear the core symfomy/doctrine team hasn't provided a standardized way (or definitive example) for working 1:mformsin doctrine yet (although all the parts are in place for symfony users to build these types offorms) Unfortunately this means that there are number of methods that people are using to get this this done. Here are a few complete methods that work: 1) Complete walk through that works:http://redotheoffice.com/?p=42 This has adding/deleting and it well written and easy to follow. I believe it only works with a single 1:Mnestedforms. 2) sfGuardUserPlugin:http://www.symfony-project.org/plugins/sfDoctrineUserPlugin This is a very thorough example with multiple 1:m on a single pages, plus add/delete buttons for the Mforms. However it required of overrideing methods to be implemented. If you can follow Stephens code, I recommend this method. I believe a few of the functions he has provided are now a part of the sfDoctrinePlugin, but I haven't had any problems extending his plugin using the symfony 1.2 branch) On Jul 30, 4:31 am, Łukasz Wojciechowski lu...@pronet.lublin.pl wrote: W dniu 30 lipca 2009 10:18 użytkownik mirfan m.irfa...@gmail.com napisał: thanks for your comments i have also the same problem only the last values are saved but i its strange if symfony give embedFormForEach facility then there should bw a way to mangae it. this is good question :) and also one more thing if i am using a loop then the loop will be limited to the counter but in my form i have no restriction how many time this is embedded what should i do for this. Regards, You should read Ryan Weaver blog posts: http://www.thatsquality.com/articles/can-the-symfony-forms-framework-.. I have used simmilar approach. On Jul 30, 1:23 pm, Łukasz Wojciechowski lu...@pronet.lublin.pl wrote: I have only one advice for You. Use embedForm instead of embedFormForEach. Few days back I also tried to create dynamic form and I got nowhere when using embedFormForEach. Practically You should be able to use embedForm many times in a loop and You should get the same effect. In my case when I was using embedFormForEach and there was more than one embedded form - only the last one was saved to database. When I used embedForm in a loop then all records was saved to database properly. good luck -- Best regards Łukasz Wojciechowski New Generation Software +48 602 214 629http://www.ngsoft.pl 2009/7/30 mirfan m.irfa...@gmail.com: please somebody help me i am really stucked here On Jul 29, 6:48 pm, mirfan m.irfa...@gmail.com wrote: hi everybody, i am using embedFormForEach and also embedForm: 1. embedForm save data without any problems but embedFormForeach is not saving the data in database. 2. i need unlimited time to embed form thats why i am using embedFormForEach but i need some help here: a. first is that some depends on database tables it will read modifiers how many they that muchformswill be embedded. example i have eye_symptoms table which have the following fields id symptom_title status the modifier table fields are id symptom_id
[symfony-users] dynamic tables/forms/models with symfony
Hi all, I need to realize an application that let the possibility to make dynamic forms and tables determinated by an admin in the backend interface of the site (not by command-line, it should be fool proof). Does symfony is able to do it or is it an hard and long hack? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: symfony payment : project status
Hi Sid, Thanks for your support. The plugins are still in alpha releases (not suitable for production at all for the moment, I insists) but hopefully contributions will bring up the beta and stable versions very soon. Antoine http://wiki.github.com/letscod/sfPaymentPlugin http://letscod.com On Mon, Aug 3, 2009 at 11:46 AM, Sid Bachtiar sid.bacht...@gmail.comwrote: Hi Antoine, That is a great news! I have a small project coming that will require a Paypal solution, and I plan to use this Paypal plugin. Much appreciated and look forward to contribute later. Regards, Sid On Mon, Aug 3, 2009 at 8:41 PM, Antoine Leclercqantoine.lecle...@gmail.com wrote: Hi everyone, Recently we have been discussing about symfony payment plugins on this mailing list. I'm happy to tell you that this project is active (main thanks to @Johnny, @Marijn, @Bernhard). 2 proof of concept plugins have been released in alpha state so far with basic support for PayPal (as an example). We are starting a third plugin for PayBox support. However there is still a lot to do on the global architecture part (what should or shouldn't be done) so if you are interested in this project, you are welcome to contribute. We have created a symfony-payment-developers group to ease development discussion. The last thread is available here : http://groups.google.com/group/symfony-payment-developers/browse_thread/thread/16e301c02c54f167 Other interesting links : - GitHub wiki page : http://wiki.github.com/letscod/sfPaymentPlugin - sfPaymentPlugin : http://www.symfony-project.org/plugins/sfPaymentPlugin - sfPaymentPayPalPlugin : http://www.symfony-project.org/plugins/sfPaymentPayPalPlugin All the best, Antoine http://wiki.github.com/letscod/sfPaymentPlugin http://letscod.com -- 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-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Running out of memory when creating the cache
Unfortunately, as you said, that patch is already applied to 1.2.7. We are facing the issue with 1.2.7, so seems like it's a different thing. Should I post this in the devs group? thanks On 31 jul, 17:01, Avnish Pundir avnish.pun...@tekmindz.com wrote: Which version of symfony are you using? I was seeing similar error while I was using (symfony 1.2.4) cache with doctrine forms. Then I found following bughttp://trac.symfony-project.org/ticket/5814- which apparently is fixed in 1.2.7 You may want to switch to 1.2.8 and see if it fixes your error!! From your error message itself it's clear that serilized object is using around 8.5M (out of 32MB) memory - needless to say more than 24M has already been consumed by application before execution reached to this point. Original Message Subject: [symfony-users] Running out of memory when creating the cache From: Gervasio gerva...@tmsoluciones.com To: symfony users symfony-users@googlegroups.com Date: Saturday 01 August 2009 12:13 AM Hi! I posted this on the forum, but got no replies. Probably the list is the place to get more feedback ;) We have a decently big app, and we have our max_memory limit on 32 MB, however this is an issue that happened when we had 128 MB too. When I see the error log from apache, I see a lot of [Thu Jul 23 09:56:15 2009] [error] [client XXX.XXX.XXX.XXX] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 8711424 bytes) in /path/to/app/cache/frontend/prod/config/ config_core_compile. yml.php on line 3365 We're also seeing some weird issues that are fixed just by clearing the cache, so my guess is that some cache files might get corrupted when this fatal error happens. I thought we might run the cache generator each say, 12 hours in a cron with a higher memory_limit, but then I'd like to disable the cache generation when the app runs - if the cache is generated, just use it. Otherwise, just open the yml files as the _dev does. Do you know how can I: 1) Generate the cache in a cron 2) Disable the cache generation on the app This is the function that causes the memory failure. public function shutdown() { if (!is_null($this-cache) $this-cacheChanged) { $this-cacheChanged = false; $this-cache-set('symfony.routing.data', serialize($this- cacheData)); } } The line 3365 is $this-cache-set('symfony.routing.data', serialize($this- cacheData)); Thanks in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: dynamic tables/forms/models with symfony
Do you mean forms that are connected with those tables? If answer is yes... this is not the way. Instead, You can store your form data in well designed tables. Create your own sfFormVisual that will manage saving, editing and building visual representation of the form based on database data and of course some kind of frontend tool for users (Javascript w/ Ajax?). This will take some time, but it's doable. On Mon, Aug 3, 2009 at 12:29 PM, cosmy c.zec...@gmail.com wrote: Hi all, I need to realize an application that let the possibility to make dynamic forms and tables determinated by an admin in the backend interface of the site (not by command-line, it should be fool proof). Does symfony is able to do it or is it an hard and long hack? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Switch environnement name in controller
Hello, I have to sent an email for recovering a password in my application when an user lost his one. I want to make the choose of the recipient different beetween the prod and the dev environnement. How can I test the current environnement in my controller to do this ? Thanks, NairuS --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Doctrine, sfDoctrineActAsTaggablePlugin and admin generator
Hi, I'm using the sfDoctrineActAsTaggablePlugin plugin with symfony 1.2.7. I have a model class that acts as i18n, and actas Taggable. The taggable behavior is at the i18n level (nested behavior). Is there a way to include a tag field in the admin generator for objects that act as taggable? Thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Symfony PHP5.3
Hi to all! Symfony 2 will have PHP5.3's Stuff?? like namespaces? How symfony have planned growup with new versions of our language?? -- Cr. Puentes Diaz MP 10.12726.9 Córdoba - Argentina www.puentesdiaz.com.ar/blog/ www.puentesdiaz.com.ar/blog/novedades www.puentesdiaz.com.ar/blog/curriculum-vitae Linux User n° 441474 Ubuntu/Symfony/Eclipse Rocks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Switch environnement name in controller
On Mon, 3 Aug 2009, NairuS wrote: I have to sent an email for recovering a password in my application when an user lost his one. I want to make the choose of the recipient different beetween the prod and the dev environnement. How can I test the current environnement in my controller to do this ? http://www.symfony-project.org/api/1_2/sfApplicationConfiguration#method_getenvironment -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] registros unicos -- No guardar dos veces
Saludos!! Quisiera saber si existe alguna forma rapida/facil (a la manera symfony) de hacer que un registro no se guarde dos veces, por ejemplo, si tengo una tabla persona y deseo que cada persona tenga un unico numero de 'identificacion', existe alguna forma de que symfony sepa que solo debe existir un unico numero de 'identificacion' ??? Gracias!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Content Encoding Error when an exception is thrown and gzip is enabled
Hi! has anyone been able to fix this? I've seen it reported at http://trac.symfony-project.org/ticket/5108 but nothing else... I've checked the code, but the ob_start is way before you know if there's actually an exception or not. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: registros unicos -- No guardar dos veces
Buenas! Lo ponés como unique en schema.yml, y guardar 2 elementos con el mismo identificador va a levantar una excepción On 3 ago, 12:03, Germana Oliveira germanaolivei...@gmail.com wrote: Saludos!! Quisiera saber si existe alguna forma rapida/facil (a la manera symfony) de hacer que un registro no se guarde dos veces, por ejemplo, si tengo una tabla persona y deseo que cada persona tenga un unico numero de 'identificacion', existe alguna forma de que symfony sepa que solo debe existir un unico numero de 'identificacion' ??? Gracias!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Enabling apc query cache with doctrine in symfony 1.2
Hi, I cannot found any documentation about the good way to enable the apc query cache in doctrine (http://www.doctrine-project.org/documentation/manual/1_0/en/caching#drivers:apc) with symfony 1.2. I've tryied to put this snippet in my ProjectConfiguration.class.php: [...] public function setup() { $this-enableAllPluginsExcept(array('sfPropelPlugin', 'sfCompat10Plugin')); $manager = Doctrine_Manager::getInstance(); $cacheDriver = new Doctrine_Cache_Apc(); $manager-setAttribute(Doctrine::ATTR_RESULT_CACHE, $cacheDriver); } [...] but I get the error: Fatal error: Class 'Doctrine_Manager' not found in dev/ProjectConfiguration.class.php on line 11 Thanks. -- Giovanni scorp Toraldo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] day 16: Integrity constraint violation: 1048 Column 'affiliate_id' cannot be null
Hi, at the begin of the day, tutorial ask to change schema and fixture. When I execute doctrine:data-load after rebuild the db, Symfony shows this message: Integrity constraint violation: 1048 Column 'affiliate_id' cannot be null How can I resolve it? I searched in forums and google. I found only this post. http://www.developpez.net/forums/d707479/php/bibliotheques-f rameworks/symfony/tuto-jobeet-day-16-reintegration-donnees/. Actually I loaded manually datas. Can anuybody help me? Regards. Luigi Massa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Code developed using symfony
Symfony's license can be seen here: http://www.symfony-project.org/license It says it pretty clear there that you can use symfony as you like. A quick visit to Wikipedia http://en.wikipedia.org/wiki/Symfony shows the license is an MIT license http://en.wikipedia.org/wiki/MIT_License . There are plenty of resources from there to answer any possible further questions about the (lack of) licensing restrictions. Hope this helps! James Wheaton -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of Janaksinh Jadeja Sent: Monday, August 03, 2009 2:58 AM To: symfony-users@googlegroups.com Subject: [symfony-users] Code developed using symfony All, One query about open source licence. Codes developed using symfony framework comes under same license which parent framework used.? Or symfony License only for the core framework code? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Template without main template
You can also create a second layout.php, e.g. layout_flash.php and define in your /app/APPLICATION_NAME/modules/MODULE_NAME/config/view.yml something like this: sendSuccess: has_layout: on layout: layout_flash or just: sendSuccess: has_layout: off On 31 Jul., 16:47, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I created an action, called send in the module system. Now I have a Flash file which sends it's values to /system/send. In the sendSuccess.php I have a line to push a thank you message to Flash. mailFeedback=Bedankt voor uw reactie (dutch!) However, ofcourse Symfony places my whole layout.php template around it. Is it possible to tell Symfony only to output the sendSuccess.php template and not the main template.php? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Enabling apc query cache with doctrine in symfony 1.2
Hi, We use this code in ProjectConfiguration.class.php (found on symfony-check.org): ?php require_once '/usr/share/php/symfony/autoload/sfCoreAutoload.class.php'; sfCoreAutoload::register(); class ProjectConfiguration extends sfProjectConfiguration { public function setup() { // for compatibility / remove and enable only the plugins you want $this-enableAllPluginsExcept(array('sfPropelPlugin', 'sfCompat10Plugin')); } /** * Configure the Doctrine engine **/ public function configureDoctrine(Doctrine_Manager $manager) { $manager-setAttribute(Doctrine::ATTR_QUERY_CACHE, new Doctrine_Cache_Apc()); } } Regards, Le 03/08/09 16:53, Giovanni Toraldo a écrit : Hi, I cannot found any documentation about the good way to enable the apc query cache in doctrine (http://www.doctrine-project.org/documentation/manual/1_0/en/caching#drivers:apc) with symfony 1.2. I've tryied to put this snippet in my ProjectConfiguration.class.php: [...] public function setup() { $this-enableAllPluginsExcept(array('sfPropelPlugin', 'sfCompat10Plugin')); $manager = Doctrine_Manager::getInstance(); $cacheDriver = new Doctrine_Cache_Apc(); $manager-setAttribute(Doctrine::ATTR_RESULT_CACHE, $cacheDriver); } [...] but I get the error: Fatal error: Class 'Doctrine_Manager' not found in dev/ProjectConfiguration.class.php on line 11 Thanks. -- Tugdual SAUNIER --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] sfDoctrineActAsTaggablePlugin and Folksonomy
sfDoctrineActAsTaggablePlugin is a really nice tagging plugin. I am trying to use it for social tagging which allow several users to tag the same object. In such setup, we need to know who added what tag to a given object. This plugin doesn't yet know about the user performing the tagging action. Please let me know, if you have an custom version of it for such usage. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] table_method problem
I'm trying to use the table_method option of my generator.yml file ( symfony version 1.2.7 (/usr/share/php/symfony) and Doctrine 1.2 ) Unknown method Doctrine_Table::retrieveBackendHotelDescriptionList I trace the error e put the var_dump on execption is called. 2606 } catch (Doctrine_Record_UnknownPropertyException $e) {} 2607 2608 var_dump( get_class($this), $method ); 2609 throw new Doctrine_Table_Exception(sprintf('Unknown method %s::%s', get_class($this), $method)); 2610 } lib/vendor/doctrine/Doctrine/Table.php 2611L, 88104C gravado(s) the result is string 'Doctrine_Table' *(length=14)* string 'retrieveBackendHotelDescriptionList' *(length=35)* It mean that the doctrine is finding my method on Doctrine_Table class and not in HotelDescription class.. my generator file is: generator: class: sfDoctrineGenerator param: model_class: HotelDescription theme: admin non_verbose_templates: true with_show: false singular: ~ plural:~ route_prefix: hotel_description_hotelDescription with_doctrine_route: 1 config: actions: ~ fields: DescriptionType: {label: Tipo de Descrição} _description: {label: Descrição} description_type_id: {label: Tipo de Descrição} list: title: Lista de Descrição de Hoteis actions: {} max_per_page: 10 batch_actions: {} object_actions: _edit: ~ display: [Hotel, DescriptionType, description] table_method: retrieveBackendHotelDescriptionList filter: Any idea about it??? +55 41 85020985 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Switch environnement name in controller
Thanks for the link :) 2009/8/3 Eno symb...@gmail.com On Mon, 3 Aug 2009, NairuS wrote: I have to sent an email for recovering a password in my application when an user lost his one. I want to make the choose of the recipient different beetween the prod and the dev environnement. How can I test the current environnement in my controller to do this ? http://www.symfony-project.org/api/1_2/sfApplicationConfiguration#method_getenvironment -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Content Encoding Error when an exception is thrown and gzip is enabled
just a follow up... at lib/vendor/symfony/lib/exception/sfException.class you can read - line 63 error_log($exception-getMessage()); // clean current output buffer while (ob_get_level()) { if (!ob_end_clean()) { break; } } ob_start(); header('HTTP/1.0 500 Internal Server Error'); if you remove // clean current output buffer while (ob_get_level()) { if (!ob_end_clean()) { break; } } ob_start(); it works flawlessly... now the big question is... why? On 3 ago, 12:41, Gervasio gerva...@tmsoluciones.com wrote: Hi! has anyone been able to fix this? I've seen it reported athttp://trac.symfony-project.org/ticket/5108but nothing else... I've checked the code, but the ob_start is way before you know if there's actually an exception or not. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Enabling apc query cache with doctrine in symfony 1.2
On Mon, 3 Aug 2009, Tugdual SAUNIER wrote: We use this code in ProjectConfiguration.class.php (found on symfony-check.org): ?php require_once '/usr/share/php/symfony/autoload/sfCoreAutoload.class.php'; sfCoreAutoload::register(); class ProjectConfiguration extends sfProjectConfiguration { public function setup() { // for compatibility / remove and enable only the plugins you want $this-enableAllPluginsExcept(array('sfPropelPlugin', 'sfCompat10Plugin')); } /** * Configure the Doctrine engine **/ public function configureDoctrine(Doctrine_Manager $manager) { $manager-setAttribute(Doctrine::ATTR_QUERY_CACHE, new Doctrine_Cache_Apc()); } } Global Doctrine configuration is documented here: http://www.symfony-project.org/doctrine/1_2/en/03-Configuration -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: day 16: Integrity constraint violation: 1048 Column 'affiliate_id' cannot be null
On Mon, 3 Aug 2009, luigi wrote: at the begin of the day, tutorial ask to change schema and fixture. When I execute doctrine:data-load after rebuild the db, Symfony shows this message: Integrity constraint violation: 1048 Column 'affiliate_id' cannot be null How can I resolve it? I searched in forums and google. I found only this post. http://www.developpez.net/forums/d707479/php/bibliotheques-f rameworks/symfony/tuto-jobeet-day-16-reintegration-donnees/. Actually I loaded manually datas. So you're not using fixtures? -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Form generator
Hi all, I am really liking the form framework, and I find it accommodates pretty much all my needs as a programmer. My html guy sees this a little differently though, since he's got a little more code to write for every form field.. So I was thinking, maybe I can generate the html output of forms for him via a task, so that he only needs to move things around.. Specifically I mean the fully formatted output that you get when you call echo $form;, while retaining the php code that actually renders the errors, labels, and fields. I hope I'm describing this ok :) My question is, does something like this generator already exist, and if not, is there something amongst the symfony generator packages that I should look at before I embark on this? Thanks, and if I was unclear, I'd be happy to elaborate on what I'm looking for. Have a great day, Daniel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Forms
I know that the php symfony propel:build-forms command generates the forms taking the fields that were mapped of a table, but i want make this, in one form only with two tables, this is possible make manually and add one clase within of lib/form path? or symfony can be make automatic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: symfony extensible model for other data source than default ORM (API, SOAP WS, CouchDB...)
Anyone? On Jul 31, 3:30 pm, JP jph...@gmail.com wrote: Thanks for your support ;) On Jul 31, 6:13 am, Sid Ferreira sid@gmail.com wrote: UP! (I have nothing to say about it, I just want support what he said as an important feature) On Fri, Jul 31, 2009 at 03:45, JP jph...@gmail.com wrote: Hi, In symfony 1.2, I can only create models using one of the 2 ORMs Doctrine or Propel. Each of the 2 plugins implements some tasks for generating an admin backend, creating fixture data, some input validation. Now let's say I want to use a different data source, that is not a database covered by the ORMs, for example: - a web API (twitter, last.fm, flickr, salesforce.com ...) - a SOAP web service - a datastore like CouchDB I believe that if I want to use one of those, I'll have to build or find a plugin similar to sfPropelPlugin or sfDoctrinePlugin to access the data source. In case my datasource provides CRUD functionnality, I might want to generate an admin interface, which means creating a generator and maybe duplicating code with the default ORMs admin generator. Another approach would be to have a set of datasource agnostic model classes that will provide feature such as an admin generator, input validation, fixture import and an interface to the datasource. This will allow developers to create custom models for various datasource and not be restricted to databases. I believe this feature is similar to DataSources in CakePHP or to the ActiveModel planned for Rails 3. I've also been using that pattern other the past couple years in a custom PHP framework that is used for a web app using a SOAP backend. I work on daily basis with SOAP developers (on new features for instance), where I need to start building my webapp sometimes before the web service is ready. In this case I create my model class and use a datasource yaml (which will be a simple yaml file with dummy data) and when the web service is ready, I just have to switch the datasource. This allows me to not wait and be able to develop features in parallel with the backend. So, I was wondering what is the approach taken by symfony for this particular use case? Is there any plan on the roadmap for 1.3 or 2.0 to provide a unified model layer that will allow developers to use custom data sources? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Upload image with admin generator
Hi, thanks for the hint, but I need upload input in the same form. I dug a lot and didn't find solution, so I suppose that's missing feature in admin generator. I will try override generated actions and templates. cheers, bogo On 1 Sie, 10:33, sonius son...@baddog.net.au wrote: i just add a link to another module eg: imagehandler/uploadFile and let that module handle the imageupload. On Aug 1, 6:03 am, bogo bogo...@tlen.pl wrote: Hi, I'd like touploadimage usingadmingenerator. I've tried set field type in mygenerator.yml to: edit: title: Editing photo %%title%% fields: path_thumb: type: admin_input_file_tag help: default size 25x25 but it doesn't work. Default input field is displayed and error message returned. how can Iuploadimages byadmingenerator? I use symfony version 1.2.8. Thanks in advance! bogo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Can´t Install sfFormExtraPlugin - Fi le Not Found
Hi I try to install sfFormExtraPlugin with plugin:install but the file was not found php symfony plugin:install sfFormExtraPlugin plugininstalling plugin sfFormExtraPlugin sfPearFrontendPlugin Could not download from sfPearFrontendPlugin http://plugins.symfony-project.org/get/sfFormExtraPlugin/sfFormExtraPlugin-1.0.11.tar; sfPearFrontendPlugin (File sfPearFrontendPlugin http://plugins.symfony-project.org:80/get/sfFormExtraPlugin/sfFormExtraPlugin-1.0.11.tar sfPearFrontendPlugin not valid (received: HTTP/1.1 404 Not Found sfPearFrontendPlugin )) sfPearFrontendPlugin Invalid or missing remote package file And if I try to install it via HTTP php symfony plugin:install -r 1.0.11 --force-license --install_deps http://plugins.symfony-project.org/get/sfFormExtraPlugin/sfFormExtraPlugin-1.0.11.tgz I got this error: You try to install a symfony 1.0 plugin. Please read the help message of this task to know how to install a plugin for the current version of symfony. Plugin sfFormExtraPlugin installation failed: I have PHP 5.3 and Symfony 1.2.8 Do you know how can i do it ? Thanks Best Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Form generator
On Mon, 3 Aug 2009, Richtermeister wrote: I am really liking the form framework, and I find it accommodates pretty much all my needs as a programmer. My html guy sees this a little differently though, since he's got a little more code to write for every form field.. So I was thinking, maybe I can generate the html output of forms for him via a task, so that he only needs to move things around.. Specifically I mean the fully formatted output that you get when you call echo $form;, while retaining the php code that actually renders the errors, labels, and fields. Supposedly there is a way to write your own form formatter to have absolute control of how a form is rendered. But I don't think its documented yet (or maybe someone can point the way if Im wrong). -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---