[symfony-users] confige sandbox project on shared host
hi any body. I mean that my question may be repetitive . I develop my first symfony with sandbox project. Now I want to deploy it on my shared host. I upload web directory content in Public_html Directory. And other directory uploaded in root: lib app config data public_html/(web content) ... Now my site only display a blank page !!! What configuration needed? -- 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] confige sandbox project on shared host
Look here to customize symfony for your directory structure: http://www.symfony-project.org/book/1_2/19-Mastering-Symfony-s-Configuration-Files#chapter_19_sub_modifying_the_project_web_root Cheers, Daniel On 2009-12-03, at 3/December, 9:10 AM, sepelloo wrote: hi any body. I mean that my question may be repetitive . I develop my first symfony with sandbox project. Now I want to deploy it on my shared host. I upload web directory content in Public_html Directory. And other directory uploaded in root: lib app config data public_html/(web content) ... Now my site only display a blank page !!! What configuration needed? -- 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: Error using sfFacebookConnectPlugin and sfGuardPlugin
Hi Zach, i'm using the Doctrine SfGuard Plugin with Facebook Connect and it works well. Do you've change the myUser.class.php ? class myUser extends sfFacebookUser { } When that not works, i need informations when does the Problem happens ? I hope i could helped. On Dec 2, 4:46 pm, Zach zach...@gmail.com wrote: I am attempting to set up a new project usingFacebookConnectand thought I would give the sfFacebookConnectPlugin a try. It looks like a great plugin and I would like to thank Fabrice and all the other contributors for their hard work to make this plugin available. I just hope I can get it all set up and running properly. I am getting the error: Fatal error: Call to a member function getId() on a non-object in C: \wamp\www\myproj\plugins\sfGuardPlugin\lib\user \sfGuardSecurityUser.class.php on line 63 I have never used sfGuardPlugin before either, so maybe I have installed it wrong. I am currently running Symfony 1.0. Any ideas would be greatly appreciated. Thanks, Zach -- 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: Create a many-to-many relation from sfGuardUser class (sfDoctrineGuardPlugin) to itself
Hi, A solution could be the creation of a Profile model class. This class should be in a one to one relation with the sfGuardUser model class, and you can still make a many to many relation on the profile table. Filippo On Dec 1, 2:32 pm, tirengarfio tirengar...@gmail.com wrote: Hi all, I would like to create a many-to-many relation from sfGuardUser class (sfDoctrineGuardPlugin) to itself, but if i cant modify the plugin content, how should i make it? Bye Javi -- 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: Create a many-to-many relation from sfGuardUser class (sfDoctrineGuardPlugin) to itself
Hi, A solution could be creating a Profile model class in relation one to one with the sfGuardUser model class. Then you can create a many-yo-many relation on the Profile class with itself. Filippo On Dec 1, 2:32 pm, tirengarfio tirengar...@gmail.com wrote: Hi all, I would like tocreateamany-to-manyrelationfromsfGuardUserclass (sfDoctrineGuardPlugin) to itself, but if i cant modify the plugin content, how should i make it? Bye Javi -- 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: Form Validation
Thanks a lot! I've just found the solution before your post! Thanks anyway for your contribution and help. :* On 2 déc, 21:14, Alexandre Salomé alexandre.sal...@gmail.com wrote: Hi, Welcome to symfony :) You must set a postValidator on the validatorSchema of your form. In the configure() method of your form : public function configure() { $this-setPostValidator(new sfValidatorSchemaCompare(left_field, sfValidatorSchemaCompare::GREATER_THAN, right_field)); } Is it OK ? Alexandre 2009/12/2 WEB-CHALLENGE kottiano...@gmail.com Hi everybody! I'm a new Symfony User. I want to setup a form where the user can enter many values. But, in the validation, the form won't be valid unless a certain data [an integer field] is greater than an other also entered by the user. I think it's simple but I'm really novice in Symfony environnement. 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-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. -- Alexandre Salomé -- alexandre.sal...@gmail.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] Re: DBFinderPlugin future
Fabien, Thanks for your quick answer. I don't mind if I work with Propel, Doctrine or AnyOtherSuperFutureORM. I just want it to query my DB. You don't mind? Are you kidding? Then, use plain PDO. Obviously, plain PDO does not offers the capability of an ORM. I would like to use ORM standard capabilities but without bothering which ORM I'm using (it's Symfony's business). I shouldn't rewrite all queries and schemas if I need to switch ORM, just because Symfony developers changed their recommendation. Why do you want to switch ORM? Both Propel and Doctrine are supported by symfony. There is no need to switch to another ORM. Doctrine is the default ORM since 1.3, and will be the only supported ORM from Symfony 2.0. Therefore, if you want to keep your projects up- to-date and benefit from the last Symfony features and LTS, you MUST use Doctrine. I'd rather do something like : $results = Db-from('Article a')-join('Comment c')-where('...')-find () or -paginate(...) whatever being the underlying ORM. Then use Doctrine ;) Using Doctrine syntax doesn't mean using Doctrine, if I need to use a different ORM (e.g. for performance issues). That's all the difference between DbQuery::create()-from(...) and DoctrineQuery::create()-from(...). IMO Symfony, like PHP, should stick with one syntax through each major version's lifetime. Instead, we still have ORM-dependent syntaxes. What if tomorrow we have to support Rocks, Redbean or LightORM (or even a Doctrine2 or DoctrineFork) with their own syntaxes ? Each important plugin will have to be maintained to work for each frequently used ORM ? BTW, don't you agree with that ? A generic ORM layer in Symfony : - Avoids to create / update / read documentation for each new ORM (instead, work on one ORM abstraction layer) - Avoids to rewrite relearn DB querying when switching ORM - Avoids to split the community with decisions such as http://www.symfony-project.org/blog/2009/06/11/new-in-symfony-1-3-wha... - Allows support for multiple ORMs http://en.wikipedia.org/wiki/List_of_object-relational_mapping_softwa... - Greatly improves plugin compatibility Thanks. On 2 déc, 19:15, Fabien Potencier fabien.potenc...@symfony- project.com wrote: Frosty wrote: +1 for a DbFinderPlugin support for Symfony = 1.3. I even think that such a piece of code should be part of Symfony core. I don't mind if I work with Propel, Doctrine or AnyOtherSuperFutureORM. I just want it to query my DB. You don't mind? Are you kidding? Then, use plain PDO. I shouldn't rewrite all queries and schemas if I need to switch ORM, just because Symfony developers changed their recommendation. Why do you want to switch ORM? Both Propel and Doctrine are supported by symfony. There is no need to switch to another ORM. I'd rather do something like : $results = Db-from('Article a')-join('Comment c')-where('...')-find () or -paginate(...) whatever being the underlying ORM. Then use Doctrine ;) If the ORM choice is not obvious (like for Propel Doctrine), just support all the best ORMs and let the user choose through configuration if necessary... The default one being Symfony's recommendation. This is exactly what you have with symfony 1.3/1.4. 2 ORMs and your choice when you start a new project. Moreover, if you need a very specific and uncommon ORM feature, you could just configure Symfony to use that ORM and bypass the generic layer, calling directly the ORM classes methods. The format for YML schemas and admin generation could be, as well, processed in a generic way through all future framework versions ORMs. A generic ORM layer in Symfony : - Avoids to create / update / read documentation for each new ORM (instead, work on one ORM abstraction layer) - Avoids to rewrite relearn DB querying when switching ORM - Avoids to split the community with decisions such as http://www.symfony-project.org/blog/2009/06/11/new-in-symfony-1-3-wha... - Allows support for multiple ORMs http://en.wikipedia.org/wiki/List_of_object-relational_mapping_softwa... - Greatly improves plugin compatibility IMHO all that worths the slight overhead generated by the generic ORM layer, which should be mainly rewriting method calls. BTW, note that the same problem goes for email sending... On 2 déc, 16:21, MoUeTtE the.moue...@gmail.com wrote: thanks for answering, and of course each ORM has it's good parts. For sure specific data logic has to be developed directly using ORM, and I never said we have to ban ORM specific dev nor that DbFinder has to implement nested set or geocode behavior. I just find it's a pity it is no more maintained. In some cases such as newsletter, application preferences, template switcher, even a simple blog, logic is very simple and it should be possible to have it ORM agnostic. It's all about avoiding code replication when it is possible, and DbFinder has been developed
Re: [symfony-users] Re: DBFinderPlugin future
Hey there, first: I think Fabien was just kidding when he said Then, use plain PDO. :) So, here's one for you. I have the DbFinderPlugin working (at least, kinda) under symfony 1.4 (!). If you want I can post a diff here. There's one thing I couldn't figure out as of yet but that could be a problem in my own code. (Explanation: after trying to fix a few snags in DbFinder I quickly tested my application and one form didn't save to the db correctly. All the other things worked like a charm. Sorry for not having unit tests, shame on me.) Obviously, when running the new project:validate task it will tell you that there's deprecated code in DbFinderPlugin. but you are on the safe side if you don't use the DbFinderAdminGenerator which was using deprecated symfony 1.0 features anyway. If you do use this, you'd have to stick with symfony 1.3. Cheers, Daniel On 2009-12-03, at 3/December, 10:59 AM, Frosty wrote: Fabien, Thanks for your quick answer. I don't mind if I work with Propel, Doctrine or AnyOtherSuperFutureORM. I just want it to query my DB. You don't mind? Are you kidding? Then, use plain PDO. Obviously, plain PDO does not offers the capability of an ORM. I would like to use ORM standard capabilities but without bothering which ORM I'm using (it's Symfony's business). I shouldn't rewrite all queries and schemas if I need to switch ORM, just because Symfony developers changed their recommendation. Why do you want to switch ORM? Both Propel and Doctrine are supported by symfony. There is no need to switch to another ORM. Doctrine is the default ORM since 1.3, and will be the only supported ORM from Symfony 2.0. Therefore, if you want to keep your projects up- to-date and benefit from the last Symfony features and LTS, you MUST use Doctrine. I'd rather do something like : $results = Db-from('Article a')-join('Comment c')-where('...')-find () or -paginate(...) whatever being the underlying ORM. Then use Doctrine ;) Using Doctrine syntax doesn't mean using Doctrine, if I need to use a different ORM (e.g. for performance issues). That's all the difference between DbQuery::create()-from(...) and DoctrineQuery::create()-from(...). IMO Symfony, like PHP, should stick with one syntax through each major version's lifetime. Instead, we still have ORM-dependent syntaxes. What if tomorrow we have to support Rocks, Redbean or LightORM (or even a Doctrine2 or DoctrineFork) with their own syntaxes ? Each important plugin will have to be maintained to work for each frequently used ORM ? BTW, don't you agree with that ? A generic ORM layer in Symfony : - Avoids to create / update / read documentation for each new ORM (instead, work on one ORM abstraction layer) - Avoids to rewrite relearn DB querying when switching ORM - Avoids to split the community with decisions such as http://www.symfony-project.org/blog/2009/06/11/new-in-symfony-1-3-wha... - Allows support for multiple ORMs http://en.wikipedia.org/wiki/List_of_object-relational_mapping_softwa... - Greatly improves plugin compatibility Thanks. On 2 déc, 19:15, Fabien Potencier fabien.potenc...@symfony- project.com wrote: Frosty wrote: +1 for a DbFinderPlugin support for Symfony = 1.3. I even think that such a piece of code should be part of Symfony core. I don't mind if I work with Propel, Doctrine or AnyOtherSuperFutureORM. I just want it to query my DB. You don't mind? Are you kidding? Then, use plain PDO. I shouldn't rewrite all queries and schemas if I need to switch ORM, just because Symfony developers changed their recommendation. Why do you want to switch ORM? Both Propel and Doctrine are supported by symfony. There is no need to switch to another ORM. I'd rather do something like : $results = Db-from('Article a')-join('Comment c')-where('...')-find () or -paginate(...) whatever being the underlying ORM. Then use Doctrine ;) If the ORM choice is not obvious (like for Propel Doctrine), just support all the best ORMs and let the user choose through configuration if necessary... The default one being Symfony's recommendation. This is exactly what you have with symfony 1.3/1.4. 2 ORMs and your choice when you start a new project. Moreover, if you need a very specific and uncommon ORM feature, you could just configure Symfony to use that ORM and bypass the generic layer, calling directly the ORM classes methods. The format for YML schemas and admin generation could be, as well, processed in a generic way through all future framework versions ORMs. A generic ORM layer in Symfony : - Avoids to create / update / read documentation for each new ORM (instead, work on one ORM abstraction layer) - Avoids to rewrite relearn DB querying when switching ORM - Avoids to split the community with decisions such as http://www.symfony-project.org/blog/2009/06/11/new-in-symfony-1-3-wha... - Allows support for multiple ORMs
[symfony-users] Re: DBFinderPlugin future
Great Daniel, thanks. And yes, I think that your diff may be useful... At least, I hope that using DbFinder, I will be able to write ORM- compatible code for Symfony's future versions (I will try to contribute in that direction as well)... first: I think Fabien was just kidding when he said Then, use plain PDO. :) Sorry... a smiley could be useful next time... :-/ On 3 déc, 11:11, Daniel Lohse annismcken...@googlemail.com wrote: Hey there, first: I think Fabien was just kidding when he said Then, use plain PDO. :) So, here's one for you. I have the DbFinderPlugin working (at least, kinda) under symfony 1.4 (!). If you want I can post a diff here. There's one thing I couldn't figure out as of yet but that could be a problem in my own code. (Explanation: after trying to fix a few snags in DbFinder I quickly tested my application and one form didn't save to the db correctly. All the other things worked like a charm. Sorry for not having unit tests, shame on me.) Obviously, when running the new project:validate task it will tell you that there's deprecated code in DbFinderPlugin. but you are on the safe side if you don't use the DbFinderAdminGenerator which was using deprecated symfony 1.0 features anyway. If you do use this, you'd have to stick with symfony 1.3. Cheers, Daniel On 2009-12-03, at 3/December, 10:59 AM, Frosty wrote: Fabien, Thanks for your quick answer. I don't mind if I work with Propel, Doctrine or AnyOtherSuperFutureORM. I just want it to query my DB. You don't mind? Are you kidding? Then, use plain PDO. Obviously, plain PDO does not offers the capability of an ORM. I would like to use ORM standard capabilities but without bothering which ORM I'm using (it's Symfony's business). I shouldn't rewrite all queries and schemas if I need to switch ORM, just because Symfony developers changed their recommendation. Why do you want to switch ORM? Both Propel and Doctrine are supported by symfony. There is no need to switch to another ORM. Doctrine is the default ORM since 1.3, and will be the only supported ORM from Symfony 2.0. Therefore, if you want to keep your projects up- to-date and benefit from the last Symfony features and LTS, you MUST use Doctrine. I'd rather do something like : $results = Db-from('Article a')-join('Comment c')-where('...')-find () or -paginate(...) whatever being the underlying ORM. Then use Doctrine ;) Using Doctrine syntax doesn't mean using Doctrine, if I need to use a different ORM (e.g. for performance issues). That's all the difference between DbQuery::create()-from(...) and DoctrineQuery::create()-from(...). IMO Symfony, like PHP, should stick with one syntax through each major version's lifetime. Instead, we still have ORM-dependent syntaxes. What if tomorrow we have to support Rocks, Redbean or LightORM (or even a Doctrine2 or DoctrineFork) with their own syntaxes ? Each important plugin will have to be maintained to work for each frequently used ORM ? BTW, don't you agree with that ? A generic ORM layer in Symfony : - Avoids to create / update / read documentation for each new ORM (instead, work on one ORM abstraction layer) - Avoids to rewrite relearn DB querying when switching ORM - Avoids to split the community with decisions such as http://www.symfony-project.org/blog/2009/06/11/new-in-symfony-1-3-wha... - Allows support for multiple ORMs http://en.wikipedia.org/wiki/List_of_object-relational_mapping_softwa... - Greatly improves plugin compatibility Thanks. On 2 déc, 19:15, Fabien Potencier fabien.potenc...@symfony- project.com wrote: Frosty wrote: +1 for a DbFinderPlugin support for Symfony = 1.3. I even think that such a piece of code should be part of Symfony core. I don't mind if I work with Propel, Doctrine or AnyOtherSuperFutureORM. I just want it to query my DB. You don't mind? Are you kidding? Then, use plain PDO. I shouldn't rewrite all queries and schemas if I need to switch ORM, just because Symfony developers changed their recommendation. Why do you want to switch ORM? Both Propel and Doctrine are supported by symfony. There is no need to switch to another ORM. I'd rather do something like : $results = Db-from('Article a')-join('Comment c')-where('...')-find () or -paginate(...) whatever being the underlying ORM. Then use Doctrine ;) If the ORM choice is not obvious (like for Propel Doctrine), just support all the best ORMs and let the user choose through configuration if necessary... The default one being Symfony's recommendation. This is exactly what you have with symfony 1.3/1.4. 2 ORMs and your choice when you start a new project. Moreover, if you need a very specific and uncommon ORM feature, you could just configure Symfony to use that ORM and bypass the generic layer, calling directly the ORM classes methods. The format for YML schemas and admin
[symfony-users] optimizing symfony admin generator
Hi, I am aware that there are guides for optimizing symfony application in generally. However, are there any specific settings I should look at in particular for the admin generator? I didnt find a guide searching .. if I was just blind .. feel free to RTFM me with a link. 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.
[symfony-users] Re: optimizing symfony admin generator
dfdsf On Dec 3, 10:22 am, Lukas Kahwe Smith m...@pooteeweet.org wrote: Hi, I am aware that there are guides for optimizing symfony application in generally. However, are there any specific settings I should look at in particular for the admin generator? I didnt find a guide searching .. if I was just blind .. feel free to RTFM me with a link. 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: DBFinderPlugin future
Alright, there you go, it's really only 2 lines changed at this time. :) Report back if you're hitting any roadblocks but my app uses hydration/joins quite extensively and it works just like before (minus that little bug I mentioned which I have to hunt down today, will report back if it's something to do with DbFinder). Cheers, 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-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. On 2009-12-03, at 3/December, 11:36 AM, Frosty wrote: Great Daniel, thanks. And yes, I think that your diff may be useful... At least, I hope that using DbFinder, I will be able to write ORM- compatible code for Symfony's future versions (I will try to contribute in that direction as well)... first: I think Fabien was just kidding when he said Then, use plain PDO. :) Sorry... a smiley could be useful next time... :-/ Jep, that would've been useful but, you know, who would use plain PDO with symfony? :D [yes, I know that there are uses for this, such as for optimization :)] sfPropelFinderRelationManagerForSymfony1.4.php.diff Description: Binary data
[symfony-users] Re: sfDoctrineGuardPlugin install problem
s -- 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: sfDoctrineGuardPlugin install problem
Hi Christopher, When i install the sfDoctrinePlugin this is the error: You can see the path i have the files and i execute the commands. Any idea what this is? I already try like the suggest on the error, the --force-license and didn't work. -- 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: sfDoctrineGuardPlugin install problem
Hi Christopher, When i install the sfDoctrinePlugin this is the error: img512.imageshack . us / img512 / 9479 / errordoctrine.jpg (need remove the spaces) You can see the path i have the files and i execute the commands. Any idea what this is? I already try like the suggest on the error, the --force-license and didn't work. -- 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] symfony propel behavior not working
I'm trying to disable form and filter generation, as stated in http://www.symfony-project.org/tutorial/1_4/en/whats-new#chapter_a2fae23c9403b0e9ec99806fccf6b53e_sub_propel_behaviors I checkd ticket 7963 http://trac.symfony-project.org/ticket/7693 and it says the bug is fixed (I'm using symfony 1.4.1-DEV) Anyway, the generation is not skipped. I tried print_r($behaviors) in plugins/sfPropelPlugin/lib/generator/ sfPropelFormGenerator.class.php and for every model the symfony behaviors has true on both form and filter, even when I specified false. Could it be related to propel.ini? I have a line in propel.ini: propel.behavior.default = symfony,symfony_i18n,alternative_coding_standards I also tried to delete symfony, but everything brokes. I would like very much to use this new feature... TIA Massimiliano -- 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] Getting all errors, translated, as an array
Hello all, I'am working on a nice project using symfony combined to extjs for frontend development. The most part of our actions use a custom view that converts the var holder to json. We are migrating to symfony 1.4 (from 1.0) and we didn't manage to find a simple way to export translated errors to a simple array ready to be json encoded. I've already done something like : http://snipplr.com/view/20688/get-all-symfony-form-errors/ but it does not support I18N translations... Maybe we have to extends the default sfWidgetFormSchemaFormatter ? Does someone has a great piece of code to share that could solve our problem ? 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-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: Error using sfFacebookConnectPlugin and sfGuardPlugin
Thanks for the reply. Yes I have changed the myUser.class.php to extend sfFacebookUser. I have followed all the installation instructions for sfGuard found here: http://www.symfony-project.org/plugins/sfGuardPlugin/1_1_16 and also the installation instructions for sfFacebookConnect found here: http://www.symfony-project.org/plugins/sfFacebookConnectPlugin I have double checked to make sure I didn't miss any of the steps. I don't know what I did wrong. I get the error when I try to access any page. I can never get past this error. I used the symfony plugin-install http://plugins.symfony-project.com/sfGuardPlugin command to install sfGuard, How do you specify which version of the plugin to install? Is it possible that I have installed a different release for a version other than symfony 1.0? Or does symfony automatically detect which version of the plugin to install? Thanks for you help. On Dec 3, 2:20 am, ridcully ohnhei...@googlemail.com wrote: Hi Zach, i'm using the Doctrine SfGuard Plugin with Facebook Connect and it works well. Do you've change the myUser.class.php ? class myUser extends sfFacebookUser { } When that not works, i need informations when does the Problem happens ? I hope i could helped. On Dec 2, 4:46 pm, Zach zach...@gmail.com wrote: I am attempting to set up a new project usingFacebookConnectand thought I would give the sfFacebookConnectPlugin a try. It looks like a great plugin and I would like to thank Fabrice and all the other contributors for their hard work to make this plugin available. I just hope I can get it all set up and running properly. I am getting the error: Fatal error: Call to a member function getId() on a non-object in C: \wamp\www\myproj\plugins\sfGuardPlugin\lib\user \sfGuardSecurityUser.class.php on line 63 I have never used sfGuardPlugin before either, so maybe I have installed it wrong. I am currently running Symfony 1.0. Any ideas would be greatly appreciated. Thanks, Zach -- 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: DBFinderPlugin future
Thanks Daniel. Even if there are only two lines, it's far better than nothing :-) BTW, I guess that a more serious maintenance for that plugin would be very useful, but François Zaninotto (who used to maintain it) won't have time for that until Propel 1.5 (see http://groups.google.com/group/propel-development/browse_thread/thread/3785550b9c9dfdf/7443163ff8fa890), that's by end of february 2010 according to http://propel.phpdb.org/trac/roadmap Anyway, I will try to help DbFinder work for last future releases of Symfony / Doctrine / Propel / other future ORMs :-) On 3 déc, 11:50, Daniel Lohse annismcken...@googlemail.com wrote: Alright, there you go, it's really only 2 lines changed at this time. :) Report back if you're hitting any roadblocks but my app uses hydration/joins quite extensively and it works just like before (minus that little bug I mentioned which I have to hunt down today, will report back if it's something to do with DbFinder). Cheers, Daniel On 2009-12-03, at 3/December, 11:36 AM, Frosty wrote: Great Daniel, thanks. And yes, I think that your diff may be useful... At least, I hope that using DbFinder, I will be able to write ORM- compatible code for Symfony's future versions (I will try to contribute in that direction as well)... first: I think Fabien was just kidding when he said Then, use plain PDO. :) Sorry... a smiley could be useful next time... :-/ Jep, that would've been useful but, you know, who would use plain PDO with symfony? :D [yes, I know that there are uses for this, such as for optimization :)] sfPropelFinderRelationManagerForSymfony1.4.php.diff 1KAfficherTélécharger -- 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: doctrine_admin_double_list doesn't work in sf1.4?
Indeed it works :) My problem was that doctrine:build-schema is unaware of many-to-many relations and schema.yml does not have the definitions for these relations. I need to add them manually I wonder if it is possible to add such functionality to doctrine:build-schema task... Thank you. Antoine S. wrote: I have never used type refClass tell the class to do the relation n:m and so the local_id and the foreign_id of refClass that make the relation. not clear maybe .. see my example, it works On Dec 1, 2:38 am, Haris Zukanović ha...@eu-softing.com wrote: Hi, I have generated doctrine schema.yml with doctrine:build-schema from my existing innoDB database but I can not see all the parameters which you say define well a many to many relation A many to many looks like this in my schema.yml: relations: InstallationUsesServer: local: id foreign: installation_id type: many it seems to be missing refClass and it has the type param Do I have a misconfigured config files for the task doctrine:build-schema? Also, doctrine:build-forms seems to add widgets only for table columns skipping adding widgets for relations. I suppose that is because of the missing refClass in my schema.yml ? Thanx Haris Antoine S. wrote: Hi You don't need to define in the generator.yml the type doublelist. If you model is ok, the form will have a widget : tags_list (widget select many) example of schema.yml n:m to have a widget categories_list in the ProductForm : Category: columns: id: type: integer(4) primary: true notnull: true autoincrement: true name: type: string(45) notnull: true Product: columns: id: type: integer(4) primary: true notnull: true autoincrement: true name: type: string(45) notnull: true relations: categories: class: Category local: Product_id foreign: Category_id refClass: CategoryProduct foreignAlias: Products CategoryProduct: columns: Category_id: type: integer(4) primary: true notnull: true Product_id: type: integer(4) primary: true notnull: true relations: Category: local: Category_id foreign: id foreignAlias: CategoryProduct Product: local: Product_id foreign: id foreignAlias: CategoryProduct options: type: InnoDB On Nov 30, 12:21 pm, Greg Romanssen dataw...@amist.com wrote: Hello, trying to learn how to use doctrine_admin_double_list that is listed inhttp://www.symfony-project.org/book/1_2/14-Generators I created schema.yml with tables Tag, BlogPost, BlogPostTag and created admin. M:N works well but I would like that nice admin_double_list. I edited generator.yml of blogpost module to this: generator: class: sfDoctrineGenerator param: model_class: BlogPost theme: admin non_verbose_templates: true with_show: false singular: BlogPost plural:BlogPosts route_prefix: blog_post with_doctrine_route: true actions_base_class:sfActions config: actions: ~ fields: ~ list:~ filter: ~ form:~ edit: title: Editace fields: BlogPostTag: name: Tagy type: doctrine_admin_double_list display: [BlogPostTag] new: ~ Unfortunately site reports this: 500 | Internal Server Error | InvalidArgumentException Widget BlogPostTag does not exist. stack trace * at **() in /SF_ROOT_DIR\lib\vendor\symfony\lib\form\sfForm.class.php/ line 1049 ... http://symfony.amslocal.com/backend_dev.php/blogpost/1/edit# 1046. { 1047. if (!$widget = $this-widgetSchema[$name]) 1048. { 1049. throw new InvalidArgumentException(sprintf('Widget %s does not exist.', $name)); 1050. } 1051. 1052. if ($this-isBound) * at *sfForm-offsetGet*('BlogPostTag') in /SF_ROOT_DIR\cache\backend\dev\modules\autoBlogpost\templates\_form_field.php/ line 6 ... http://symfony.amslocal.com/backend_dev.php/blogpost/1/edit# 3. ?php elseif ($field-isComponent()): ? 4. ?php include_component('blogpost', $name, array('form' = $form, 'attributes' = $attributes instanceof sfOutputEscaper ? $attributes-getRawValue() : $attributes)) ? 5. ?php else: ? 6. div class=?php echo $class ??php $form[$name]-hasError() and print ' errors' ? 7. ?php echo
[symfony-users] Re: sfDoctrineGuardPlugin install problem
I found the problem. I though 1.3 and 1.4 Symfony were the same, so i was trying install sfDoctrineGuardPlugin in 1.4 but it seems doesn't work. I replace the 1.4 to 1.3 and solved the problem -- 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] German Translation - Advent Calendar 2009
Hello mailinglist, my colleagues and me have just registered for translating this years advent calendar into german. We're a group of 4 people at the moment, if anyone feels comfortable to help us (translating/proof-reading) feel free to leave us a message. Greetings from Weinheim - Germany Christian #twitter @weyandch -- 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] German Translation - Advent Calendar 2009
Hallo Christian, ich würde euch gern beim Korrekturlesen helfen. Viele Grüße, Daniel On 2009-12-03, at 3/December, 4:03 PM, weyandch wrote: Hello mailinglist, my colleagues and me have just registered for translating this years advent calendar into german. We're a group of 4 people at the moment, if anyone feels comfortable to help us (translating/proof-reading) feel free to leave us a message. Greetings from Weinheim - Germany Christian #twitter @weyandch -- 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] pt_br translate of advent_calendar
Hi, Just announcing the beginning of pt(International) translation of 2009 Advent Calendar. All Brazilian and Portuguese friends are invited to join us. We will coordinate the works in symfony-pt group(google groups), so please, register yourself and leave a message. Cheers Lucas Stephanou -- 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] [sfDoctrineGuardPlugin] Change username into email
I would need to change the username field of sfDoctrineGuardPlugin into email, because my site will not need usernames, but unique emails. I tried to just change the name and type of the username field, but when I rebuild all I get this error: Unknown record property / related component username on sfGuardUser So I suppose I can't change the username field. My workaround would be using the username as an email (and also adding an email:true validation to the field). Is this approach correct enough? Is there any cleaner workaround? -- 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] problem with url_for() function in prod environment but not in dev environment (jobeet tutorial)
Hi all, I'm currently going through the jobeet tutorial and at the end of day 4 when checking the behavior of the job module in both environments dev (http://jobeet.localhost/frontend_dev.php/job) and prod (http:// jobeet.localhost/index.php/job), I noticed that my links were not good in prod environment. For example, they should be like that: http://jobeet.localhost/index.php/job/show/id/2 but instead they are all like that: http://jobeet.localhost/job/show/id/2 The index.php part the url is missing. I spent some time tracking the issue and I narrowed it down to the environment setting in the application configuration, in web/index.php. If I change 'prod' with 'dev' in the following line, the problem disappears: $configuration = ProjectConfiguration::getApplicationConfiguration ('frontend', 'prod', false); And, if I make the inverse change in web/frontend_dev.php, I get faulty urls in http://jobeet.localhost/frontend_dev.php/job too. Has any of you bumped into this problem before? Or does anybody have a suggestion to help me solve this issue? Thanks a lot, Bill -- 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: problem with url_for() function in prod environment but not in dev environment (jobeet tutorial)
I forgot to mention explicitly that these faulty links are created by the function url_for(). I also tried with function link_to() and got the same result. Bill -- 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] [sfDoctrineGuardPlugin] Change username into email
Altough this article was written using propel, you should check it out: http://bluehorn.co.nz/2009/06/12/symfony-12-propel-and-sfguardplugin-email-login/ On Thu, Dec 3, 2009 at 12:05, David M dvd...@gmail.com wrote: I would need to change the username field of sfDoctrineGuardPlugin into email, because my site will not need usernames, but unique emails. I tried to just change the name and type of the username field, but when I rebuild all I get this error: Unknown record property / related component username on sfGuardUser So I suppose I can't change the username field. My workaround would be using the username as an email (and also adding an email:true validation to the field). Is this approach correct enough? Is there any cleaner workaround? -- 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] Re: problem with url_for() function in prod environment but not in dev environment (jobeet tutorial)
This sounds like the work of the no_script_name option and is totally ligitimate! It makes the URLs prettier but can be problematic in shared host environments where AllowOverride All is not set and the requests crash with Apache saying that the requested URL doesn't exist. You never mentioned it but is this happening for you? Otherwise, I'd advise to read all the symfony documentation, especially the routing chapters. :) Cheers, Daniel Sent from my iPhone On Dec 3, 2009, at 4:57 PM, Bill Berry yo.cou...@gmail.com wrote: I forgot to mention explicitly that these faulty links are created by the function url_for(). I also tried with function link_to() and got the same result. Bill -- 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: comma instead of dot
Sorry for the late reply. Maybe the country data in symfony is wrong? Please try it with culture = 'de'. At weekend i try to test this issue. On 27 Nov., 09:14, dziobacz aaabbbcccda...@gmail.com wrote: Thx Fasi - I write: $this-setWidget('price', new sfWidgetFormI18nNumber( array('culture' = 'pl') )); $this-setValidator('price', new sfValidatorI18nNumber( array('culture' = 'pl') )); Unfortunately during edition record with price in field 'price' I see price with dot instead of comma so i must by myself change dot on comma :/ On 27 Lis, 07:48, Gábor Fási maerl...@gmail.com wrote: This might be what you are looking for:http://www.symfony-project.org/plugins/sfFormI18nNumberPlugin On Fri, Nov 27, 2009 at 07:21, dziobacz aaabbbcccda...@gmail.com wrote: In form I have: $this-setValidators(array( 'price' = new sfValidatorNumber(), )); I think in many countries people uses comma instead of dot and real nobody know ? On 26 Lis, 20:39, dziobacz aaabbbcccda...@gmail.com wrote: I have form with price field - but I can write only price with dot, price with comma is incorrect - what can I do ? In my country price has got always comma. -- 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.
[symfony-users] Re: comma instead of dot
Using PL culture I write: ,00 and see: Input has a wrong format: ,00 Using DE culture I write: ,00 and no error communicates so in that case is ok BUT in both cases after wrote in input: ,00 and clicked save, this value in input is converting on: ,00 (comma is converting on dot) On 3 Gru, 18:50, oweit...@gmx.de oweit...@gmx.de wrote: Sorry for the late reply. Maybe the country data in symfony is wrong? Please try it with culture = 'de'. At weekend i try to test this issue. On 27 Nov., 09:14, dziobacz aaabbbcccda...@gmail.com wrote: Thx Fasi - I write: $this-setWidget('price', new sfWidgetFormI18nNumber( array('culture' = 'pl') )); $this-setValidator('price', new sfValidatorI18nNumber( array('culture' = 'pl') )); Unfortunately during edition record with price in field 'price' I see price with dot instead of comma so i must by myself change dot on comma :/ On 27 Lis, 07:48, Gábor Fási maerl...@gmail.com wrote: This might be what you are looking for:http://www.symfony-project.org/plugins/sfFormI18nNumberPlugin On Fri, Nov 27, 2009 at 07:21, dziobacz aaabbbcccda...@gmail.com wrote: In form I have: $this-setValidators(array( 'price' = new sfValidatorNumber(), )); I think in many countries people uses comma instead of dot and real nobody know ? On 26 Lis, 20:39, dziobacz aaabbbcccda...@gmail.com wrote: I have form with price field - but I can write only price with dot, price with comma is incorrect - what can I do ? In my country price has got always comma. -- 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.
[symfony-users] Re: comma instead of dot
Using PL culture I write: ,00 and see: Input has a wrong format: ,00 Using DE culture I write: ,00 and no error communicates so in that case is ok BUT in both cases after wrote in input: ,00 and clicked save, this value in input is converting on: ,00 (comma is converting on dot) On 3 Gru, 18:50, oweit...@gmx.de oweit...@gmx.de wrote: Sorry for the late reply. Maybe the country data in symfony is wrong? Please try it with culture = 'de'. At weekend i try to test this issue. On 27 Nov., 09:14, dziobacz aaabbbcccda...@gmail.com wrote: Thx Fasi - I write: $this-setWidget('price', new sfWidgetFormI18nNumber( array('culture' = 'pl') )); $this-setValidator('price', new sfValidatorI18nNumber( array('culture' = 'pl') )); Unfortunately during edition record with price in field 'price' I see price with dot instead of comma so i must by myself change dot on comma :/ On 27 Lis, 07:48, Gábor Fási maerl...@gmail.com wrote: This might be what you are looking for:http://www.symfony-project.org/plugins/sfFormI18nNumberPlugin On Fri, Nov 27, 2009 at 07:21, dziobacz aaabbbcccda...@gmail.com wrote: In form I have: $this-setValidators(array( 'price' = new sfValidatorNumber(), )); I think in many countries people uses comma instead of dot and real nobody know ? On 26 Lis, 20:39, dziobacz aaabbbcccda...@gmail.com wrote: I have form with price field - but I can write only price with dot, price with comma is incorrect - what can I do ? In my country price has got always comma. -- 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.
[symfony-users] Re: comma instead of dot
Using PL culture I write: ,00 and see: Input has a wrong format: ,00 Using DE culture I write: ,00 and no error communicates so in that case is ok BUT in both cases after wrote in input: ,00 and clicked save, this value in input is converting on: .00 (comma is converting on dot) On 3 Gru, 18:50, oweit...@gmx.de oweit...@gmx.de wrote: Sorry for the late reply. Maybe the country data in symfony is wrong? Please try it with culture = 'de'. At weekend i try to test this issue. On 27 Nov., 09:14, dziobacz aaabbbcccda...@gmail.com wrote: Thx Fasi - I write: $this-setWidget('price', new sfWidgetFormI18nNumber( array('culture' = 'pl') )); $this-setValidator('price', new sfValidatorI18nNumber( array('culture' = 'pl') )); Unfortunately during edition record with price in field 'price' I see price with dot instead of comma so i must by myself change dot on comma :/ On 27 Lis, 07:48, Gábor Fási maerl...@gmail.com wrote: This might be what you are looking for:http://www.symfony-project.org/plugins/sfFormI18nNumberPlugin On Fri, Nov 27, 2009 at 07:21, dziobacz aaabbbcccda...@gmail.com wrote: In form I have: $this-setValidators(array( 'price' = new sfValidatorNumber(), )); I think in many countries people uses comma instead of dot and real nobody know ? On 26 Lis, 20:39, dziobacz aaabbbcccda...@gmail.com wrote: I have form with price field - but I can write only price with dot, price with comma is incorrect - what can I do ? In my country price has got always comma. -- 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.
[symfony-users] Re: comma instead of dot
Using PL culture I write: ,00 and see: Input has a wrong format: ,00 Using DE culture I write: ,00 and no error communicates so in that case is ok BUT in both cases after wrote in input: ,00 and clicked save, this value in input is converting on: .00 (comma is converting on dot) On 3 Gru, 18:50, oweit...@gmx.de oweit...@gmx.de wrote: Sorry for the late reply. Maybe the country data in symfony is wrong? Please try it with culture = 'de'. At weekend i try to test this issue. On 27 Nov., 09:14, dziobacz aaabbbcccda...@gmail.com wrote: Thx Fasi - I write: $this-setWidget('price', new sfWidgetFormI18nNumber( array('culture' = 'pl') )); $this-setValidator('price', new sfValidatorI18nNumber( array('culture' = 'pl') )); Unfortunately during edition record with price in field 'price' I see price with dot instead of comma so i must by myself change dot on comma :/ On 27 Lis, 07:48, Gábor Fási maerl...@gmail.com wrote: This might be what you are looking for:http://www.symfony-project.org/plugins/sfFormI18nNumberPlugin On Fri, Nov 27, 2009 at 07:21, dziobacz aaabbbcccda...@gmail.com wrote: In form I have: $this-setValidators(array( 'price' = new sfValidatorNumber(), )); I think in many countries people uses comma instead of dot and real nobody know ? On 26 Lis, 20:39, dziobacz aaabbbcccda...@gmail.com wrote: I have form with price field - but I can write only price with dot, price with comma is incorrect - what can I do ? In my country price has got always comma. -- 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.
[symfony-users] Re: Strange sfGuard bug/problem
The problem is that that main.css file doesn't exist. Your browser requests it and smacks into the 404 action, which is then stored as the last requested action. After the login, the guard plugin tries to redirect you to that last url.. Basically, make sure you only reference assets that actually exist, and the problem will go away. Daniel On Dec 2, 3:48 pm, Patrick Fong patr...@ddns.com.au wrote: Hi all, I'm having a strange issue when trying to login using sfGuard. For some reason, and this only happens randomly, it will redirect tohttp://domain/css/main.css. I can't seem to figure out why this would be happening in the first place and the fact that it only happens on a seemingly random basis makes it even harder to debug. Has anyone experienced this or able to point me in the right direction. Cheers, Pat -- 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] More with Symfony: Russian translation
Who wants? I can translate, need more people :) Can't find other topic on this. -- 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] Trying to merge objects
Hi, i have these two queries below and i want to merge the resulting objects, but i can't. public static function getAmigos($id) { $q1 = Doctrine_Query::create() -from('Usuario u') -leftJoin('u.AmigoUsuario a ON u.id = a.user1') -where(a.user2 LIKE ?, $id) -andWhere(a.estado LIKE ?, 1) -execute(); $q2 = Doctrine_Query::create() -from('Usuario u') -leftJoin('u.AmigoUsuario a ON u.id = a.user2') -where(a.user1 LIKE ?, $id) -andWhere(a.estado LIKE ?, 1) -execute(); $array_q1 = $q1-toArray(); $array_q2 = $q2-toArray(); $q = array_merge($array_q1, $array_q2); return $q; } As you can see I have tried it with array_merge() but i get errors with the getters because the resulting objects are not considered as objects anymore. No problem if use only one query, i mean this: public static function getAmigos($id) { $q1 = Doctrine_Query::create() -from('Usuario u') -leftJoin('u.AmigoUsuario a ON u.id = a.user1') -where(a.user2 LIKE ?, $id) -andWhere(a.estado LIKE ?, 1) -execute(); $array_q1 = $q1-toArray(); return $q1; } How would you do it? Bye Javi -- 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: Trying to merge objects
Sorry, i was wrong i also have error with the getters when i have only one query...:) So the question again: how do you merge the resulting objects of two queries? Javi On Dec 3, 3:28 pm, tirengarfio tirengar...@gmail.com wrote: Hi, i have these two queries below and i want to merge the resulting objects, but i can't. public static function getAmigos($id) { $q1 = Doctrine_Query::create() -from('Usuario u') -leftJoin('u.AmigoUsuario a ON u.id = a.user1') -where(a.user2 LIKE ?, $id) -andWhere(a.estado LIKE ?, 1) -execute(); $q2 = Doctrine_Query::create() -from('Usuario u') -leftJoin('u.AmigoUsuario a ON u.id = a.user2') -where(a.user1 LIKE ?, $id) -andWhere(a.estado LIKE ?, 1) -execute(); $array_q1 = $q1-toArray(); $array_q2 = $q2-toArray(); $q = array_merge($array_q1, $array_q2); return $q; } As you can see I have tried it with array_merge() but i get errors with the getters because the resulting objects are not considered as objects anymore. No problem if use only one query, i mean this: public static function getAmigos($id) { $q1 = Doctrine_Query::create() -from('Usuario u') -leftJoin('u.AmigoUsuario a ON u.id = a.user1') -where(a.user2 LIKE ?, $id) -andWhere(a.estado LIKE ?, 1) -execute(); $array_q1 = $q1-toArray(); return $q1; } How would you do it? Bye Javi -- 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: Error using sfFacebookConnectPlugin and sfGuardPlugin
Thanks for the help, I don't know what I had done wrong, but I started over from scratch and now it seems to work. On Dec 3, 7:51 am, Zach zach...@gmail.com wrote: Thanks for the reply. Yes I have changed the myUser.class.php to extend sfFacebookUser. I have followed all the installation instructions for sfGuard found here:http://www.symfony-project.org/plugins/sfGuardPlugin/1_1_16and also the installation instructions for sfFacebookConnect found here:http://www.symfony-project.org/plugins/sfFacebookConnectPluginI have double checked to make sure I didn't miss any of the steps. I don't know what I did wrong. I get the error when I try to access any page. I can never get past this error. I used the symfony plugin-installhttp://plugins.symfony-project.com/sfGuardPlugin command to install sfGuard, How do you specify which version of the plugin to install? Is it possible that I have installed a different release for a version other than symfony 1.0? Or does symfony automatically detect which version of the plugin to install? Thanks for you help. On Dec 3, 2:20 am, ridcully ohnhei...@googlemail.com wrote: Hi Zach, i'm using the Doctrine SfGuard Plugin with Facebook Connect and it works well. Do you've change the myUser.class.php ? class myUser extends sfFacebookUser { } When that not works, i need informations when does the Problem happens ? I hope i could helped. On Dec 2, 4:46 pm, Zach zach...@gmail.com wrote: I am attempting to set up a new project usingFacebookConnectand thought I would give the sfFacebookConnectPlugin a try. It looks like a great plugin and I would like to thank Fabrice and all the other contributors for their hard work to make this plugin available. I just hope I can get it all set up and running properly. I am getting the error: Fatal error: Call to a member function getId() on a non-object in C: \wamp\www\myproj\plugins\sfGuardPlugin\lib\user \sfGuardSecurityUser.class.php on line 63 I have never used sfGuardPlugin before either, so maybe I have installed it wrong. I am currently running Symfony 1.0. Any ideas would be greatly appreciated. Thanks, Zach -- 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: Trying to merge objects
Sorry, i was wrong i also have error with the getters when i have only one query...:) So the question again: how do you merge the resulting objects of two queries? Javi On Dec 3, 3:28 pm, tirengarfio tirengar...@gmail.com wrote: Hi, i have these two queries below and i want to merge the resulting objects, but i can't. public static function getAmigos($id) { $q1 = Doctrine_Query::create() -from('Usuario u') -leftJoin('u.AmigoUsuario a ON u.id = a.user1') -where(a.user2 LIKE ?, $id) -andWhere(a.estado LIKE ?, 1) -execute(); $q2 = Doctrine_Query::create() -from('Usuario u') -leftJoin('u.AmigoUsuario a ON u.id = a.user2') -where(a.user1 LIKE ?, $id) -andWhere(a.estado LIKE ?, 1) -execute(); $array_q1 = $q1-toArray(); $array_q2 = $q2-toArray(); $q = array_merge($array_q1, $array_q2); return $q; } As you can see I have tried it with array_merge() but i get errors with the getters because the resulting objects are not considered as objects anymore. No problem if use only one query, i mean this: public static function getAmigos($id) { $q1 = Doctrine_Query::create() -from('Usuario u') -leftJoin('u.AmigoUsuario a ON u.id = a.user1') -where(a.user2 LIKE ?, $id) -andWhere(a.estado LIKE ?, 1) -execute(); $array_q1 = $q1-toArray(); return $q1; } How would you do it? Bye Javi -- 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] token ##PACKAGE## in sf1.4 base model classes should be replaced by?
Hi, the following tokens can be found in the autogenerated base model classes in sf 1.4. * @package##PACKAGE## * @subpackage ##SUBPACKAGE## * @author ##NAME## ##EMAIL## Is there a way to replace them by real values? Or are they placeholders for future use? TIA Georg -- 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: problem with url_for() function in prod environment but not in dev environment (jobeet tutorial)
Thank you, Daniel, I get it now. The url_for() function is doing its job right, the problem is with my apache configuration. Yes, I do have several virtual hosts and I do get Apache errors with these links. AllowOverride All is set, though. Anyway, I'm reading the part of the jobeet tutorial about routing now and I'll read more about Apache server so I can set it up correctly. It's maybe a little out of the range of this discussion group but if anybody has a suggestion, feel free to help. Thanks again. Bill On Dec 3, 5:21 pm, Daniel Lohse annismcken...@googlemail.com wrote: This sounds like the work of the no_script_name option and is totally ligitimate! It makes the URLs prettier but can be problematic in shared host environments where AllowOverride All is not set and the requests crash with Apache saying that the requested URL doesn't exist. You never mentioned it but is this happening for you? Otherwise, I'd advise to read all the symfony documentation, especially the routing chapters. :) Cheers, Daniel Sent from my iPhone On Dec 3, 2009, at 4:57 PM, Bill Berry yo.cou...@gmail.com wrote: I forgot to mention explicitly that these faulty links are created by the function url_for(). I also tried with function link_to() and got the same result. Bill -- 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.
[symfony-users] Latest Lime + Symfony 1.0.x?
Hi, Right now, we are using symfony 1.0. We have plans to upgrade to symfony 1.4. But that won't be for several months. However, there is one thing I do have an immediate need for, which is the new JUnit xml logging facility in lime. Is it possible to upgrade lime before upgrading symfony itself? Bad idea? Tks, -T -- 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] Where to put the logic?
Hi Bernhard, actually I had the logic in a postInsert method of the Client class, which IMO made the most sense. But this lead to the following surprise: When I used $ symfony doctrine:data-load from a fixture with one client and one user I suddenly ended with two users instead of one. First data-load inserted the client and triggered the postInsert event, which created a user. Then data-load continued with adding a user, and hey presto, suddenly there were two :-( And I was forced to use mysqldump. I have always wondered why doctrine:data-load doesn't behave the same way like mysqldump, just dump and load sql data, which I expected by the name (data-dump and data-load)? I am forced to go along the controller/form solution, because for the test cases I need fresh data in the db, and mysqldump is not an option is this case. But this feels wrong. Georg Bernhard Schussek schrieb: Hi Georg, Why don't you just override the save() method of the Client class? You could, for example, check whether any user is associated with the client and, if not, do it manually before calling parent::save(). I personally would prefer to put this logic into the form for creating the Client though, because magic save-methods can lead to tricky problems. Is this an option for you? Bernhard -- 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] Latest Lime + Symfony 1.0.x?
Hi Tennis, As far as I know, Lime 2 is independent component, so I believe this is possible. In the factories.yml, I don't see any TestFactory or such a thing. If tests are generated somewhere somehow, I would suggest you extending them or write a new plugin to generate test cases for your datamodel, etc, by using lime (I hope there are events at which you can listen for). Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Thu, Dec 3, 2009 at 10:33 PM, Tennis Smith ten...@tripit.com wrote: Hi, Right now, we are using symfony 1.0. We have plans to upgrade to symfony 1.4. But that won't be for several months. However, there is one thing I do have an immediate need for, which is the new JUnit xml logging facility in lime. Is it possible to upgrade lime before upgrading symfony itself? Bad idea? Tks, -T -- 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] Where to put the logic?
Where would you register the listener? If it is registered in the form action, this would only be an elaborate extension of the controller logic: instead of creating the Client object and afterwards the User object directly in the controller, I would register a listener in the controller that gets called if a Client is created just in this controller action, which is the same. If I register it in an application config class, this would lead to inconsistent behaviour, because if I create a Client object in app1, a User object would be created, and in app2 not. This would mean it would have to be registered in the project config. And there it would be triggered by the doctrine:data-load task again (resulting in double users, see my other post) Georg Stéphane schrieb: The controller isn't responsible for application logic. It must be in your model (if you can...). For this kind of case, I would prefer playing with events. For example, when user is created just dispatch an event like users.user.new or whatever sounds like. Then connect the app-logic method that add admin-role to user using eventdispather.connect( 'users.user.new', your class method); This way the method of creating the user is strictly limited to its area : creating a user; Then somewhere else (in a dedicated class), write the method which will add admin-role to the newly created user (which will be the subject of the event). Check the doc for more info (event system). Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Mon, Nov 30, 2009 at 9:37 PM, Bernhard Schussek bschus...@gmail.com mailto:bschus...@gmail.com wrote: Hi Georg, Why don't you just override the save() method of the Client class? You could, for example, check whether any user is associated with the client and, if not, do it manually before calling parent::save(). I personally would prefer to put this logic into the form for creating the Client though, because magic save-methods can lead to tricky problems. Is this an option for you? Bernhard -- 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 mailto:symfony-users@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com mailto:symfony-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. -- 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: problem with url_for() function in prod environment but not in dev environment (jobeet tutorial)
When I had these mysterious error stelling me the URL blablabla could not be found it was one of the following: Either 1. AllowOverride All not set for the web directory Here's correct (i.e. working) virtual host for my MacOSX with MAMP: Listen 8080 NameVirtualHost 127.0.0.1:8080 VirtualHost 127.0.0.1:8080 ServerName sitename.localhost DocumentRoot /Applications/MAMP/htdocs/sitename/web DirectoryIndex index.php Directory /Applications/MAMP/htdocs/sitename/web AllowOverride All Allow from All /Directory /VirtualHost for this to work, one has to add the line 127.0.0.1 sitename.localhost in the /etc/hosts file. Or 2. The required .htaccess file in the web directory had been forgotten (mostly wasn't copied over from the development system) Here's a working one from one of my projects: Options +FollowSymLinks +ExecCGI IfModule mod_rewrite.c RewriteEngine On # uncomment the following line, if you are having trouble # getting no_script_name to work #RewriteBase / # we skip all files with .something #RewriteCond %{REQUEST_URI} \..+$ #RewriteCond %{REQUEST_URI} !\.html$ #RewriteRule .* - [L] # we check if the .html version is here (caching) RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f # no, so we redirect to our front web controller RewriteRule ^(.*)$ index.php [QSA,L] /IfModule I hope this helps, Daniel On 2009-12-03, at 3/December, 10:17 PM, Bill Berry wrote: Thank you, Daniel, I get it now. The url_for() function is doing its job right, the problem is with my apache configuration. Yes, I do have several virtual hosts and I do get Apache errors with these links. AllowOverride All is set, though. Anyway, I'm reading the part of the jobeet tutorial about routing now and I'll read more about Apache server so I can set it up correctly. It's maybe a little out of the range of this discussion group but if anybody has a suggestion, feel free to help. Thanks again. Bill On Dec 3, 5:21 pm, Daniel Lohse annismcken...@googlemail.com wrote: This sounds like the work of the no_script_name option and is totally ligitimate! It makes the URLs prettier but can be problematic in shared host environments where AllowOverride All is not set and the requests crash with Apache saying that the requested URL doesn't exist. You never mentioned it but is this happening for you? Otherwise, I'd advise to read all the symfony documentation, especially the routing chapters. :) Cheers, Daniel Sent from my iPhone On Dec 3, 2009, at 4:57 PM, Bill Berry yo.cou...@gmail.com wrote: I forgot to mention explicitly that these faulty links are created by the function url_for(). I also tried with function link_to() and got the same result. Bill -- 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.
Re: [symfony-users] Where to put the logic?
First, Hello (sorry) :-) I was assuming this was happening to one of your class; is this happening to all/other classes ? Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Thu, Dec 3, 2009 at 10:53 PM, Georg Gell geor...@have2.com wrote: Where would you register the listener? If it is registered in the form action, this would only be an elaborate extension of the controller logic: instead of creating the Client object and afterwards the User object directly in the controller, I would register a listener in the controller that gets called if a Client is created just in this controller action, which is the same. If I register it in an application config class, this would lead to inconsistent behaviour, because if I create a Client object in app1, a User object would be created, and in app2 not. This would mean it would have to be registered in the project config. And there it would be triggered by the doctrine:data-load task again (resulting in double users, see my other post) Georg Stéphane schrieb: The controller isn't responsible for application logic. It must be in your model (if you can...). For this kind of case, I would prefer playing with events. For example, when user is created just dispatch an event like users.user.new or whatever sounds like. Then connect the app-logic method that add admin-role to user using eventdispather.connect( 'users.user.new', your class method); This way the method of creating the user is strictly limited to its area : creating a user; Then somewhere else (in a dedicated class), write the method which will add admin-role to the newly created user (which will be the subject of the event). Check the doc for more info (event system). Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Mon, Nov 30, 2009 at 9:37 PM, Bernhard Schussek bschus...@gmail.com mailto:bschus...@gmail.com wrote: Hi Georg, Why don't you just override the save() method of the Client class? You could, for example, check whether any user is associated with the client and, if not, do it manually before calling parent::save(). I personally would prefer to put this logic into the form for creating the Client though, because magic save-methods can lead to tricky problems. Is this an option for you? Bernhard -- 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 mailto:symfony-users@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com mailto: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.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: problem with url_for() function in prod environment but not in dev environment (jobeet tutorial)
I've just found a solution in the meantime. The rewrite_module was not loaded by Apache. So I just had to add this line to my httpd.conf: LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so Sorry, if It was a newbie's mistake, and thank you again, Daniel, for your help. Bill -- 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: problem with url_for() function in prod environment but not in dev environment (jobeet tutorial)
No problem. And no, that isn't a newbie's mistake as it's not easy to get at the loaded modules of Apache or even thinking about it in the first place. So, keep at it and have fun using symfony! :) Cheers, Daniel On 2009-12-04, at 4/December, 12:13 AM, Bill Berry wrote: I've just found a solution in the meantime. The rewrite_module was not loaded by Apache. So I just had to add this line to my httpd.conf: LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so Sorry, if It was a newbie's mistake, and thank you again, Daniel, for your help. Bill -- 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: Error using sfFacebookConnectPlugin and sfGuardPlugin
Great you managed to solve your problem, although it would have been nice to actually see what you did wrong. Cheers, Fabrice -- http://www.theodo.fr -- 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] Update to symfony 1.3 tutorial step 3 : Upgrade symfony to 1.3 ???
Hi all, In the tutorial the third step is called Upgrade symfony to 1.3 and i do not know how to do this... I tried to copy the package in lib/ vendor/symfony, i tried the pear upgrade... command but it didn't work (i changed the directory, maybe it is because of this...) Help ! -- 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: Getting crazy : how to add a widget (tinyMCE for ex.) on internationalized fields
Ok, it works... perfectly ! Thank you very much for your help ! Bye On 1 dic, 21:17, Alexandre Salomé alexandre.sal...@gmail.com wrote: Well, it's all OK, until you do : $this-widgetSchema['intro'] = new sfWidgetFormTextareaTinyMCE( At this time, you are not modifying existing widgets, you are creating new one. You should put this code in the MyObjectI18nForm. Symfony generates forms for I18N attributes. In your template : echo $form['fr']['intro'] Alex' 2009/12/1 poussain julien.stoeff...@gadz.org Hi everybody. I can not manage to have both i18n and tinyMCE widgets on internationalised fields. If i put both, i will have internationalised fields for all my objects' fields, but no tinyMCE for them. I will have as much tinyMCE fields as i declared, but thew will not correspond to any language, they will be at the beginning or at the end. It worked perfectly before i internationalized the objects Here is an example of code : // config/doctrine/schema.yml MyObject: actAs: I18n: fields: [title, subtitle, intro, text] columns: title: {type: string(500)} subtitle: {type: string(500)} intro: {type: string(4000)} text: {type: string(16000)} // lib/form/doctrine/MyObject.class.php public function configure() { $this-embedI18n(array('en', 'fr', 'es')); $this-widgetSchema-setLabel('fr', 'Français'); $this-widgetSchema-setLabel('en', 'Anglais'); $this-widgetSchema-setLabel('es', 'Español'); $this-widgetSchema['intro'] = new sfWidgetFormTextareaTinyMCE( array( 'width'=600, 'height'=100, 'config'='theme_advanced_disable: anchor,image,cleanup,help', 'theme' = sfConfig::get('app_tinymce_theme','simple'), ), array( 'class' = 'tiny_mce' ) ); $this-widgetSchema['text'] = new sfWidgetFormTextareaTinyMCE( array( 'width'=600, 'height'=100, 'config'='theme_advanced_disable: anchor,image,cleanup,help', 'theme' = sfConfig::get('app_tinymce_theme','simple'), ), array( 'class' = 'tiny_mce' ) ); $js_path = sfConfig::get('sf_rich_text_js_dir') ? '/'.sfConfig::get ('sf_rich_text_js_dir').'/tiny_mce.js' : '/sf/tinymce/js/tiny_mce.js'; sfContext::getInstance()-getResponse()-addJavascript($js_path); } So i guess when i use $this-widgetSchema['intro'], the intro name does not correspond to all the i18n intro fields. I tried both 'en_intro' and 'intro_en', but it doesn't do any magic. So maybe you could help me ? I have search by myself quite a lot, but found no answer Thank you -- 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...@goog legroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Alexandre Salomé -- alexandre.sal...@gmail.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] Re: Doctrine Actas plugin
So, I wanted to write a plugin DoctrineActAsSomething. The existing plugins don't generate classes (or from the schema.yml) so my template extends Doctrine_Record_Generator. The code in my previous message works and will generate the base class (etc), but in the project NOT in the plugin. The reason comes fron the Doctrine/Record/Generator.php function generateClass(array $definition = array()) $builder-buildRecord($definition); is called, and expect a $definition['package'] to build the class in the package/plugin or it is not possible, because generateClass() is called from : public function generateClassFromTable(Doctrine_Table $table) { $definition = array(); $definition['columns'] = $table-getColumns(); $definition['tableName'] = $table-getTableName(); $definition['actAs'] = $table-getTemplates(); return $this-generateClass($definition); } So for now, adding at the line 449 this code, works fine : if( isset($this-_options['package']) ) { $definition['package'] = (isset($this-_options ['package'])) ? $this-_options['package'] : null; $builder-setOption('packagesPath', (isset($this- _options['packagesPath'])) ? $this-_options['packagesPath'] : null ); } I dont know how the builder is able to write in the plugin directory from a schema.yml. Somehow another buillder must extend this one .. I dont know. -- 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: Strange sfGuard bug/problem
I recall asking this same question last year when I was learning Symfony. And I've seen it asked several times since. It really belongs in some kind of FAQ. On Dec 3, 2:20 pm, Richtermeister nex...@gmail.com wrote: The problem is that that main.css file doesn't exist. Your browser requests it and smacks into the 404 action, which is then stored as the last requested action. After the login, the guard plugin tries to redirect you to that last url.. Basically, make sure you only reference assets that actually exist, and the problem will go away. Daniel On Dec 2, 3:48 pm, Patrick Fong patr...@ddns.com.au wrote: Hi all, I'm having a strange issue when trying to login using sfGuard. For some reason, and this only happens randomly, it will redirect tohttp://domain/css/main.css. I can't seem to figure out why this would be happening in the first place and the fact that it only happens on a seemingly random basis makes it even harder to debug. Has anyone experienced this or able to point me in the right direction. Cheers, Pat -- 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] database on a different server than symfony
Hi, I currently have symfony and database on the same server. But I want to move the database to different server. Please help me in this regard. Regards Deepak Bhatia -- 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] database on a different server than symfony
On Fri, 4 Dec 2009, DEEPAK BHATIA wrote: I currently have symfony and database on the same server. But I want to move the database to different server. http://www.symfony-project.org/reference/1_4/en/07-Databases -- -- 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: database on a different server than symfony
you have to edit the database.yml file which exist in config folder all: propel: class:sfPropelDatabase param: classname: PropelPDO dsn:mysql:dbname=database_name;host=server_name 0r IP_Address username: mysql_username password: mysql_password encoding: utf8 persistent: true pooling:true thats all you have to do cheers On Dec 4, 12:42 pm, Eno symb...@gmail.com wrote: On Fri, 4 Dec 2009, DEEPAK BHATIA wrote: I currently have symfony and database on the same server. But I want to move the database to different server. http://www.symfony-project.org/reference/1_4/en/07-Databases -- -- 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.