[symfony-users] Re: app.yml array is not array on first level
http://www.symfony-project.org/book/1_2/05-Configuring-Symfony#chapter_05_sub_custom_application_settings_and_app_yml It's documented there - When you should require an PHP array directly beneath the all key you need to use a category header, otherwise symfony will make the values separately available as shown above. On Jun 14, 6:26 pm, Tom Ptacnik to...@tomor.cz wrote: No, underscores are ok, even if I chage it to all: test: [cs, en] it's the same sfConfig::add(array( 'app_test_0' = 'cs', 'app_test_1' = 'en', As pghoratiu sad. It looks like an undocumented feature. Never mind I can live with that. One must just remember that :) On 14 čvn, 14:45, Eno symb...@gmail.com wrote: On Mon, 14 Jun 2010, Tom Ptacnik wrote: Do someone know why first solution produce bad array and second will produce good array? I'm talking abou settings in app.yml 1) all: frontend_cultures: [cs, en] will produce (cache/app/dev/app.yml.php): 'app_frontend_cultures_0' = 'cs', 'app_frontend_cultures_1' = 'en', 2) all: frontend: cultures: [cs, en] 'app_frontend_cultures' = array ( 0 = 'cs', 1 = 'en', ), Im guessing using an underscore in the array name is a problem since the config handler uses underscores too. You can use alternate syntax. http://www.symfony-project.org/gentle-introduction/1_4/en/05-Configur... -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Plugin post install processing
Couldn't you use the plugins/yourPlugin/config/ yourPluginConfiguration.class.php ? try to connnect to the plugin.post_install event in the initialize method. I think it's faaar more clever than putting a task and then ask to launch it in the README file. On 14 juin, 16:34, Stéphane stephane.er...@gmail.com wrote: Yes, I think the task is the best way, as the publish-assets is about assets, and what I need is creating configurations files at the project-level. Thank you ! Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Mon, Jun 14, 2010 at 4:33 PM, Eno symb...@gmail.com wrote: On Mon, 14 Jun 2010, Serkan Koyuncu wrote: I think, you have to create another task which user should run after installing your plugin. Probably you need to supply the CLI task 'plugin:publish-assets'. -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@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 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Component relationship with edit form
Hi, I suddenly checked the component display found some bug in that. Actually, I am working on the Article website displaying All categories at the top. For this, I have used component in layout. This is working fine for all pages except the edit/new article form page, which also contains a category list but in a different way. Now, on this page, Top component categories are also taking the same format as the Drop down list in form. For clarification, please check attached screenshot. Please help! If more details needed, Please let me know. Screenshot: http://forum.symfony-project.org/index.php/fa/1578/ -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] IP address
How do I lookup the users IP address? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] IP address
http://www.symfony-project.org/api/1_4/sfWebRequest#method_getremoteaddress On Tue, Jun 15, 2010 at 11:50, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: How do I lookup the users IP address? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] routing error
Anyone getting this error? 500 | Internal Server Error | sfConfigurationException The route ModuleName_collection does not exist. If I go to ModuleName/new it works but not the lists? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Loading fixtures data error
Hello, I bumped into an error today when I was trying to load some fixtures data. I kind of know what the problem is, but I don't know the solution, and google doesn't says anything useful. Here are the data that you will need: schema file: { ... } PageContent: actAs:{ Timestampable: ~ } columns: parial: { type: boolean, notnull: true, default: false} page_id: { type: integer, notnull: true } item_id: { type: integer } partial_id: { type: integer } relations: Page: { onDelete: CASCADE, local: page_id, foreign: id, foreignAlias: Page } Item: { onDelete: CASCADE, local: item_id, foreign: id, foreignAlias: Item } Partial: { onDelete: CASCADE, local: partial_id, foreign: id, foreignAlias: Partial } { ... } And the fixture is: { ... } PageContent: homepage_header: partial: true Page: homepage item_id: null Partial: header { ... } The error is: Couldn't call Doctrine_Core::set(), second argument should be an instance of Doctrine_Record or Doctrine_Null when setting one-to-one references. I've checked the rest of the fixture, and the problems appear only when I insert a PageContent item; Of course the problem is that Item or Partial has to be null (that's my condition) but There seems no way to set either of them to null. I've tried `Item` instead of `item_id` or `~` instead of `null` and their combinations, and none have worked. How can I set that item_id to null ? I can post the rest of the schema if that's relevant in anyway (even if I don't believe so). -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] sfWidgetFormChoice
I am working on a module generated by the admin generator. I added the sfWidgetFormChoice widget to the lib/form file, like this : class MyModule extends BaseMyModule { public function configure() { $this-widgetSchema['field'] = new sfWidgetFormChoice (array( 'choices' = array ('Choice1', 'Choice2') )); } } My problem is that the choices are converted to '0' and '1' before Insert(). I would like to insert the values of 'choices' (in this case Choice1 and Choice2). Help would be appreciated. I hope I am clear enough. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: I don't see images in production in a shared server
Can you make a link to the directory? ln -s /sf /PATH/TO/DIR On Tue, Jun 8, 2010 at 1:13 PM, Eno symb...@gmail.com wrote: On Mon, 7 Jun 2010, Javier Garcia wrote: When I say minimum I'm thinking in price :). Most of your problems stem from the fact that your hosting provider doesn't allow certain config directives needed for symfony. So just find a provider that does. I use cheap virtual servers but they do require you know how to setup and maintain a Linux server but that might not be appropriate for you. You'll have to do some research and find something you can manage. The symfony wiki has some useful info: http://trac.symfony-project.org/wiki#Installingsymfony -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@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 -- --- . Pablo Rodriguez Monedero. . http://dailycosas.net . . . There are only 10 types of people:. . Those who understand binary,. . and those who don't. --- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Invitation to view my posts on FriendFeed
(http://friendfeed.com/?ic=tEzOKnZaFf) (http://friendfeed.com/hidensoft?ic%3DtEzOKnZaFf) hidensoft invites you to see the links, photos, and videos hidensoft is sharing on FriendFeed (https://friendfeed.com/account/create?ic=tEzOKnZaFf) FriendFeed (http://friendfeed.com/?ic=%(code)s) is a web site that enables you to discover and discuss interesting stuff that your friends and family find on the web. Here are some other people on FriendFeed that you might know: (http://friendfeed.com/bayli?ic%3DtEzOKnZaFf) mark (http://friendfeed.com/mariusrugan?ic%3DtEzOKnZaFf) Marius Rugan (http://friendfeed.com/datoine?ic%3DtEzOKnZaFf) Antoine (http://friendfeed.com/cirpo?ic%3DtEzOKnZaFf) cirpo (http://friendfeed.com/sebastienarmand?ic%3DtEzOKnZaFf) Sebastien Armand (http://friendfeed.com/dlondero?ic%3DtEzOKnZaFf) Daniel Londero Here are some of the things hidensoft has recently shared on FriendFeed: hidensoft @weaverryan (http://twitter.com/weaverryan) no man :D im here some times :D 19 minutes ago (http://friendfeed.com/e/471a9362-0b5b-03ca-728e-51c0c9662b75/weaverryan-no-man-D-im-here-some-times-D/?ic%3DtEzOKnZaFf) from Twitter (http://twitter.com/hidensoft/statuses/16215231819) - Comment - Like hidensoft چگونه از دیتابیس رکورد تصادفی استخراج کنیم | hidensoft's blog - (http://hidensoft.blogspot.com/2010/06/blog-post_13.html) Sunday (http://friendfeed.com/e/6879ad40-a373-7698-3cf8-892de9d89ed9/hidensoft-s-blog/?ic%3DtEzOKnZaFf) from Facebook (http://www.facebook.com/profile.php?id=11020439322) - Comment - Like hidensoft کشتی معروف با لنگری افسانه ایی!!! | hidensoft's blog - (http://hidensoft.blogspot.com/2010/06/blog-post.html) Friday (http://friendfeed.com/e/6a523cb3-cd72-1e24-bf30-8656b65f85ba/hidensoft-s-blog/?ic%3DtEzOKnZaFf) from Facebook - Comment - Like You are receiving this email because hidensoft sent an invitation to symfony-users@googlegroups.com from http://friendfeed.com/. Opt-out of invitation request emails: (http://friendfeed.com/account/optout?code=tEzOKnZaFf) FriendFeed Inc., 313 W. Evelyn Ave., Mountain View, CA 94041 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en 0.jpe1.png2.png3.jpe4.jpe5.jpe6.jpe7.png
Re: [symfony-users] sfWidgetFormChoice
choices = array( choice1 = choice1, choice2 = choice2, ); On Tue, Jun 15, 2010 at 10:24, Joe joe.hakim.ra...@gmail.com wrote: I am working on a module generated by the admin generator. I added the sfWidgetFormChoice widget to the lib/form file, like this : class MyModule extends BaseMyModule { public function configure() { $this-widgetSchema['field'] = new sfWidgetFormChoice (array( 'choices' = array ('Choice1', 'Choice2') )); } } My problem is that the choices are converted to '0' and '1' before Insert(). I would like to insert the values of 'choices' (in this case Choice1 and Choice2). Help would be appreciated. I hope I am clear enough. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Possible to write a table-less doctrine schema definition?
Hi all, I want to write a plugin that amongst other features contains a Form class. For extensibility reasons I would like it to follow the same way that doctrine model forms are organised having a Base..Form, Plugin..Form and ..Form. So the developer can add custom code inheriting the one from the plugin. However this Form does not relate to a table in the database but is used to access a web service. So I need no model. Is there a way to define a virtual schema definition for this so that symfony doctrine:build --all will generate the appropriate classes in the developers project? Cheers /Christian -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Functional tests for Form validators?
On 14 Giu, 16:12, Christopher Schnell ty...@mda.ch wrote: As I am writing lots of functional tests these days, I was wondering if one should test the standard validators of a form. Let's say, we have a change Password form. This simple form with three fields would require lots of tests, for example . Is the current password correct ? . Is the new passwort long enough . Is the new password entered twice . . Now all these tests are implemented with standard validators. Would it be just lazy not to test these cases? How many tests do you write for such things? I think you should test them. You are not unit-testing validators, you are testing if your application is running fine. What if in 2 months someone accidentally remove a validator? If you test it, you're done. If not, you can get trouble. cheers Massimiliano -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Recent viewed jobs not work on the production after upgrade to 1.4.5
Hello, I have succesfully deploy the jobeet application from my localhost to a shared host: http://jobeet.makelovenotwar.heliohost.org/ Everthing was like in my localhost, but I change my symfony version to 1.4.5 and on my localhost everthing is like before but I don't know what happend at my shared server with Recent viewed jobs, it only works, I mean is show the job only when viewing the job, but when back to index page the Recent viewed jobs is empty, on my localhost it's ok. I also delete the content form my cache folder both from shared host and from my localhost this time using clear cache option. Thank you -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Possible to write a table-less doctrine schema definition?
AFAIK, there is no such possibility – you're going to have to craft them by hand. :) Cheers, Daniel On 15.06.2010, at 14:15, Christian Schaefer wrote: Hi all, I want to write a plugin that amongst other features contains a Form class. For extensibility reasons I would like it to follow the same way that doctrine model forms are organised having a Base..Form, Plugin..Form and ..Form. So the developer can add custom code inheriting the one from the plugin. However this Form does not relate to a table in the database but is used to access a web service. So I need no model. Is there a way to define a virtual schema definition for this so that symfony doctrine:build --all will generate the appropriate classes in the developers project? Cheers /Christian -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Form helper on symfony 1.4
On Mon, 14 Jun 2010, Gustavo Fonseca wrote: The book A gentle introduction do symfony[1] tells me that there is a helper called Form which can generate a select element containig a country list, but this helper is deprecated [2]! Somebody know if this feature does not exists anymore on symfony 1.4? As the docs say, it was deprecated in 1.3 and removed in 1.4. -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin csrf
Hello. I`m using ahDoctrineEasyEmbeddedRelationsPlugin in the amin part of my app. My problem is I still get the CSRF attack errors whenever I want to save, even though I added $this-disableLocalCSRFProtection(); to ALL of my form filters. Can anyone help? Also, I can`t figure out how to configure my form display part of the generator.yml without loosing the subforms. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin csrf
When you do $this-disableLocalCSRFProtection(); You have to do this too (AFAIK it works for my code) : $this-getValidator('_csrf_token')-setOption('required', false); Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Tue, Jun 15, 2010 at 5:24 PM, DC ciprian.dob...@gmail.com wrote: Hello. I`m using ahDoctrineEasyEmbeddedRelationsPlugin in the amin part of my app. My problem is I still get the CSRF attack errors whenever I want to save, even though I added $this-disableLocalCSRFProtection(); to ALL of my form filters. Can anyone help? Also, I can`t figure out how to configure my form display part of the generator.yml without loosing the subforms. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@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 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin csrf
You might need to do it for the embedded forms too. Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Tue, Jun 15, 2010 at 5:27 PM, Stéphane stephane.er...@gmail.com wrote: When you do $this-disableLocalCSRFProtection(); You have to do this too (AFAIK it works for my code) : $this-getValidator('_csrf_token')-setOption('required', false); Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Tue, Jun 15, 2010 at 5:24 PM, DC ciprian.dob...@gmail.com wrote: Hello. I`m using ahDoctrineEasyEmbeddedRelationsPlugin in the amin part of my app. My problem is I still get the CSRF attack errors whenever I want to save, even though I added $this-disableLocalCSRFProtection(); to ALL of my form filters. Can anyone help? Also, I can`t figure out how to configure my form display part of the generator.yml without loosing the subforms. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@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 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Possible to write a table-less doctrine schema definition?
On Tue, 15 Jun 2010, Christian Schaefer wrote: However this Form does not relate to a table in the database but is used to access a web service. So I need no model. Is there a way to define a virtual schema definition for this so that symfony doctrine:build --all will generate the appropriate classes in the developers project? Im guessing you'll have to write your own model layer. -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: ahDoctrineEasyEmbeddedRelationsPlugin csrf
Thank you for your reply, however i get the following error: The validator _csrf_token does not exist. On Jun 15, 6:27 pm, Stéphane stephane.er...@gmail.com wrote: You might need to do it for the embedded forms too. Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Tue, Jun 15, 2010 at 5:27 PM, Stéphane stephane.er...@gmail.com wrote: When you do $this-disableLocalCSRFProtection(); You have to do this too (AFAIK it works for my code) : $this-getValidator('_csrf_token')-setOption('required', false); Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Tue, Jun 15, 2010 at 5:24 PM, DC ciprian.dob...@gmail.com wrote: Hello. I`m using ahDoctrineEasyEmbeddedRelationsPlugin in the amin part of my app. My problem is I still get the CSRF attack errors whenever I want to save, even though I added $this-disableLocalCSRFProtection(); to ALL of my form filters. Can anyone help? Also, I can`t figure out how to configure my form display part of the generator.yml without loosing the subforms. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@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 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] integrating galleria into symfony 1.4
hi all, i am trying to integrate this jquery script into symfony found at: http://galleria.aino.se/ . however i am coming up with a blank screen. i put the javascripts inside /js/galleria folder then in the showSuccess of my module, i put this ?php use_javascript('jquery-1.4.2.min.js') ? ?php use_javascript('galleria/galleria.js') ? div id=body ?php foreach ($gallery_pics as $pics): ? ?php $picUrl = image_tag('../uploads/assets/picturegal/' . $pics-getImage()) ? div class=images?php echo $picUrl ?/div ?php endforeach; ? script Galleria.loadTheme('../galleria/themes/ galleria.classic.js'); /script script type=text/javascript $('.images').galleria(); /script /div the path in the url is like this: http://mydomain:8080/portal_dev.php/gallery/show/id/1 is there a better way to integrate external jquery into symfony?? Thanks.. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Failed to save form with multiple checkboxes
Show your form and the action that is saving the result, and when you're getting the error(ie, when you call bind, or when you call save) A stack trace of the error would be best, really, but without any of this information it's just guesswork what the cause could be. On Jun 15, 12:10 pm, eantz eantz.z...@gmail.com wrote: I have a form with multiple checkboxes. I use sfWidgetFormChoice to generate it. But, when I try to bind it before saving, the following error appear : SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens I really don't know why it can happen. Someone please help me.. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Loading fixtures data error
Have you tried not specifying item_id at all? On Jun 14, 4:10 pm, dex rtl...@gmail.com wrote: Hello, I bumped into an error today when I was trying to load some fixtures data. I kind of know what the problem is, but I don't know the solution, and google doesn't says anything useful. Here are the data that you will need: schema file: { ... } PageContent: actAs: { Timestampable: ~ } columns: parial: { type: boolean, notnull: true, default: false} page_id: { type: integer, notnull: true } item_id: { type: integer } partial_id: { type: integer } relations: Page: { onDelete: CASCADE, local: page_id, foreign: id, foreignAlias: Page } Item: { onDelete: CASCADE, local: item_id, foreign: id, foreignAlias: Item } Partial: { onDelete: CASCADE, local: partial_id, foreign: id, foreignAlias: Partial } { ... } And the fixture is: { ... } PageContent: homepage_header: partial: true Page: homepage item_id: null Partial: header { ... } The error is: Couldn't call Doctrine_Core::set(), second argument should be an instance of Doctrine_Record or Doctrine_Null when setting one-to-one references. I've checked the rest of the fixture, and the problems appear only when I insert a PageContent item; Of course the problem is that Item or Partial has to be null (that's my condition) but There seems no way to set either of them to null. I've tried `Item` instead of `item_id` or `~` instead of `null` and their combinations, and none have worked. How can I set that item_id to null ? I can post the rest of the schema if that's relevant in anyway (even if I don't believe so). -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] integrating galleria into symfony 1.4
I would probably do this on index instead of show. Also, your code to create the gallery should be div class=images ?php foreach ($gallery_pics as $pics): ? ?php $picUrl = image_tag('../uploads/assets/picturegal/' . $pics-getImage()) ? ?php echo $picUrl ? ?php endforeach; ? /div Disable the the script to see if the images are actually loading on the page. On 06/15/2010 10:18 AM, el-sid wrote: hi all, i am trying to integrate this jquery script into symfony found at: http://galleria.aino.se/ . however i am coming up with a blank screen. i put the javascripts inside /js/galleria folder then in the showSuccess of my module, i put this ?php use_javascript('jquery-1.4.2.min.js') ? ?php use_javascript('galleria/galleria.js') ? div id=body ?php foreach ($gallery_pics as $pics): ? ?php $picUrl = image_tag('../uploads/assets/picturegal/' . $pics-getImage()) ? div class=images?php echo $picUrl ?/div ?php endforeach; ? script Galleria.loadTheme('../galleria/themes/ galleria.classic.js'); /script script type=text/javascript $('.images').galleria(); /script /div the path in the url is like this: http://mydomain:8080/portal_dev.php/gallery/show/id/1 is there a better way to integrate external jquery into symfony?? Thanks.. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: integrating galleria into symfony 1.4
thanks for reply, i took your advice and put the code on the index and the changed the div tags..however, i notice that if i comment out these statements: ?php use_javascript('jquery-1.4.2.min.js') ? ?php use_javascript('galleria/galleria.js') ? the images show, i am thinking it has something to do with file paths, especially on the javascript script Galleria.loadTheme('../galleria/themes/ galleria.classic.js'); /script but i dont know how to set it. i have tried ../../../../ on several levels but nothing On Jun 15, 9:17 pm, Richard D Shank deve...@zestic.com wrote: I would probably do this on index instead of show. Also, your code to create the gallery should be div class=images ?php foreach ($gallery_pics as $pics): ? ?php $picUrl = image_tag('../uploads/assets/picturegal/' . $pics-getImage()) ? ?php echo $picUrl ? ?php endforeach; ? /div Disable the the script to see if the images are actually loading on the page. On 06/15/2010 10:18 AM, el-sid wrote: hi all, i am trying to integrate this jquery script into symfony found at: http://galleria.aino.se/. however i am coming up with a blank screen. i put the javascripts inside /js/galleria folder then in the showSuccess of my module, i put this ?php use_javascript('jquery-1.4.2.min.js') ? ?php use_javascript('galleria/galleria.js') ? div id=body ?php foreach ($gallery_pics as $pics): ? ?php $picUrl = image_tag('../uploads/assets/picturegal/' . $pics-getImage()) ? div class=images?php echo $picUrl ?/div ?php endforeach; ? script Galleria.loadTheme('../galleria/themes/ galleria.classic.js'); /script script type=text/javascript $('.images').galleria(); /script /div the path in the url is like this:http://mydomain:8080/portal_dev.php/gallery/show/id/1 is there a better way to integrate external jquery into symfony?? Thanks.. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: integrating galleria into symfony 1.4
oh...what i mean is that the images display but the gallery is still not enabled On Jun 15, 10:09 pm, el-sid sydneyari...@gmail.com wrote: thanks for reply, i took your advice and put the code on the index and the changed the div tags..however, i notice that if i comment out these statements: ?php use_javascript('jquery-1.4.2.min.js') ? ?php use_javascript('galleria/galleria.js') ? the images show, i am thinking it has something to do with file paths, especially on the javascript script Galleria.loadTheme('../galleria/themes/ galleria.classic.js'); /script but i dont know how to set it. i have tried ../../../../ on several levels but nothing On Jun 15, 9:17 pm, Richard D Shank deve...@zestic.com wrote: I would probably do this on index instead of show. Also, your code to create the gallery should be div class=images ?php foreach ($gallery_pics as $pics): ? ?php $picUrl = image_tag('../uploads/assets/picturegal/' . $pics-getImage()) ? ?php echo $picUrl ? ?php endforeach; ? /div Disable the the script to see if the images are actually loading on the page. On 06/15/2010 10:18 AM, el-sid wrote: hi all, i am trying to integrate this jquery script into symfony found at: http://galleria.aino.se/. however i am coming up with a blank screen. i put the javascripts inside /js/galleria folder then in the showSuccess of my module, i put this ?php use_javascript('jquery-1.4.2.min.js') ? ?php use_javascript('galleria/galleria.js') ? div id=body ?php foreach ($gallery_pics as $pics): ? ?php $picUrl = image_tag('../uploads/assets/picturegal/' . $pics-getImage()) ? div class=images?php echo $picUrl ?/div ?php endforeach; ? script Galleria.loadTheme('../galleria/themes/ galleria.classic.js'); /script script type=text/javascript $('.images').galleria(); /script /div the path in the url is like this:http://mydomain:8080/portal_dev.php/gallery/show/id/1 is there a better way to integrate external jquery into symfony?? Thanks.. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: integrating galleria into symfony 1.4
nope. it didn't work. i tried Galleria.loadTheme('/js/galleria/themes/galleria.classic.js'); and also Galleria.loadTheme('../js/galleria/themes/galleria.classic.js'); but nothing. I am relatively new to symfony, so i have never integrated php with jquery. is there an alternative way of doing this On Jun 15, 10:40 pm, Richard D Shank deve...@zestic.com wrote: On 06/15/2010 12:09 PM, el-sid wrote: thanks for reply, i took your advice and put the code on the index and the changed the div tags..however, i notice that if i comment out these statements: ?php use_javascript('jquery-1.4.2.min.js') ? ?php use_javascript('galleria/galleria.js') ? the images show, i am thinking it has something to do with file paths, especially on the javascript script Galleria.loadTheme('../galleria/themes/ galleria.classic.js'); /script but i dont know how to set it. i have tried ../../../../ on several levels but nothing I think your hunch is right, try an absolute link. Galleria.loadTheme('/js/galleria/themes/galleria.classic.js'); or where ever it is located for you On Jun 15, 9:17 pm, Richard D Shankdeve...@zestic.com wrote: I would probably do this on index instead of show. Also, your code to create the gallery should be div class=images ?php foreach ($gallery_pics as $pics): ? ?php $picUrl = image_tag('../uploads/assets/picturegal/' . $pics-getImage()) ? ?php echo $picUrl ? ?php endforeach; ? /div Disable the the script to see if the images are actually loading on the page. On 06/15/2010 10:18 AM, el-sid wrote: hi all, i am trying to integrate this jquery script into symfony found at: http://galleria.aino.se/. however i am coming up with a blank screen. i put the javascripts inside /js/galleria folder then in the showSuccess of my module, i put this ?php use_javascript('jquery-1.4.2.min.js') ? ?php use_javascript('galleria/galleria.js') ? div id=body ?php foreach ($gallery_pics as $pics): ? ?php $picUrl = image_tag('../uploads/assets/picturegal/' . $pics-getImage()) ? div class=images?php echo $picUrl ?/div ?php endforeach; ? script Galleria.loadTheme('../galleria/themes/ galleria.classic.js'); /script script type=text/javascript $('.images').galleria(); /script /div the path in the url is like this:http://mydomain:8080/portal_dev.php/gallery/show/id/1 is there a better way to integrate external jquery into symfony?? Thanks.. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: integrating galleria into symfony 1.4
On 06/15/2010 01:09 PM, el-sid wrote: nope. it didn't work. i tried Galleria.loadTheme('/js/galleria/themes/galleria.classic.js'); and also Galleria.loadTheme('../js/galleria/themes/galleria.classic.js'); but nothing. I am relatively new to symfony, so i have never integrated php with jquery. is there an alternative way of doing this That part of it is, most likely, not related to symfony. If you have the images being created, the galleria plugin adds the extra html/css/js to make the slideshow work. Have you looked at what is happening on the webpage using firebug? The other thing, that is obvious, but easy to overlook, are you sure the js files are where they are supposed to be. On Jun 15, 10:40 pm, Richard D Shankdeve...@zestic.com wrote: On 06/15/2010 12:09 PM, el-sid wrote: thanks for reply, i took your advice and put the code on the index and the changed the divtags..however, i notice that if i comment out these statements: ?php use_javascript('jquery-1.4.2.min.js') ? ?php use_javascript('galleria/galleria.js') ? the images show, i am thinking it has something to do with file paths, especially on the javascript script Galleria.loadTheme('../galleria/themes/ galleria.classic.js'); /script but i dont know how to set it. i have tried ../../../../ on several levels but nothing I think your hunch is right, try an absolute link. Galleria.loadTheme('/js/galleria/themes/galleria.classic.js'); or where ever it is located for you On Jun 15, 9:17 pm, Richard D Shankdeve...@zestic.comwrote: I would probably do this on index instead of show. Also, your code to create the gallery should be div class=images ?php foreach ($gallery_pics as $pics): ? ?php $picUrl = image_tag('../uploads/assets/picturegal/' . $pics-getImage()) ? ?php echo $picUrl ? ?php endforeach; ? /div Disable the the script to see if the images are actually loading on the page. On 06/15/2010 10:18 AM, el-sid wrote: hi all, i am trying to integrate this jquery script into symfony found at: http://galleria.aino.se/. however i am coming up with a blank screen. i put the javascripts inside /js/galleria folder then in the showSuccess of my module, i put this ?php use_javascript('jquery-1.4.2.min.js') ? ?php use_javascript('galleria/galleria.js') ? div id=body ?php foreach ($gallery_pics as $pics): ? ?php $picUrl = image_tag('../uploads/assets/picturegal/' . $pics-getImage()) ? div class=images?php echo $picUrl ?/div ?php endforeach; ? script Galleria.loadTheme('../galleria/themes/ galleria.classic.js'); /script script type=text/javascript $('.images').galleria(); /script /div the path in the url is like this:http://mydomain:8080/portal_dev.php/gallery/show/id/1 is there a better way to integrate external jquery into symfony?? Thanks.. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: integrating galleria into symfony 1.4
geez! i think you are right..just put firebug and it seems some of the javascript code is being obstructed by the debug toolbar and/or with my other javascript code there. On my layout..i had used: ?php include_stylesheets() ? ?php include_javascripts() ? though now i am starting to think its a better idea to include stylesheets for the layout only and add module specific stylesheets and javascripts in the view.yml Is that about right?? Anyway, time to power down my brain. its late in my continent. Thanks for all your help Richard, i'll let you know how it goes. On Jun 15, 11:43 pm, Richard D Shank deve...@zestic.com wrote: On 06/15/2010 01:09 PM, el-sid wrote: nope. it didn't work. i tried Galleria.loadTheme('/js/galleria/themes/galleria.classic.js'); and also Galleria.loadTheme('../js/galleria/themes/galleria.classic.js'); but nothing. I am relatively new to symfony, so i have never integrated php with jquery. is there an alternative way of doing this That part of it is, most likely, not related to symfony. If you have the images being created, the galleria plugin adds the extra html/css/js to make the slideshow work. Have you looked at what is happening on the webpage using firebug? The other thing, that is obvious, but easy to overlook, are you sure the js files are where they are supposed to be. On Jun 15, 10:40 pm, Richard D Shankdeve...@zestic.com wrote: On 06/15/2010 12:09 PM, el-sid wrote: thanks for reply, i took your advice and put the code on the index and the changed the div tags..however, i notice that if i comment out these statements: ?php use_javascript('jquery-1.4.2.min.js') ? ?php use_javascript('galleria/galleria.js') ? the images show, i am thinking it has something to do with file paths, especially on the javascript script Galleria.loadTheme('../galleria/themes/ galleria.classic.js'); /script but i dont know how to set it. i have tried ../../../../ on several levels but nothing I think your hunch is right, try an absolute link. Galleria.loadTheme('/js/galleria/themes/galleria.classic.js'); or where ever it is located for you On Jun 15, 9:17 pm, Richard D Shankdeve...@zestic.com wrote: I would probably do this on index instead of show. Also, your code to create the gallery should be div class=images ?php foreach ($gallery_pics as $pics): ? ?php $picUrl = image_tag('../uploads/assets/picturegal/' . $pics-getImage()) ? ?php echo $picUrl ? ?php endforeach; ? /div Disable the the script to see if the images are actually loading on the page. On 06/15/2010 10:18 AM, el-sid wrote: hi all, i am trying to integrate this jquery script into symfony found at: http://galleria.aino.se/. however i am coming up with a blank screen. i put the javascripts inside /js/galleria folder then in the showSuccess of my module, i put this ?php use_javascript('jquery-1.4.2.min.js') ? ?php use_javascript('galleria/galleria.js') ? div id=body ?php foreach ($gallery_pics as $pics): ? ?php $picUrl = image_tag('../uploads/assets/picturegal/' . $pics-getImage()) ? div class=images?php echo $picUrl ?/div ?php endforeach; ? script Galleria.loadTheme('../galleria/themes/ galleria.classic.js'); /script script type=text/javascript $('.images').galleria(); /script /div the path in the url is like this:http://mydomain:8080/portal_dev.php/gallery/show/id/1 is there a better way to integrate external jquery into symfony?? Thanks.. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Functional tests for Form validators?
Basically, the book recommends that you test everything. The book goes on to recommend that if you later find any bugs that need to be fixed, that the fix also include yet more tests to ensure that the bug is and stays fixed. They really mean ruthless testing. The book is worth adding to your personal bookshelf. cheers, - Michael On Mon, Jun 14, 2010 at 8:30 PM, Christopher Schnell ty...@mda.ch wrote: Thanks for the suggestion. Until my boss orders this book, could you give me a short answer ? Just curious J Regards, Christopher. *Von:* symfony-users@googlegroups.com [mailto: symfony-us...@googlegroups.com] *Im Auftrag von *Michael Hodges *Gesendet:* Montag, 14. Juni 2010 19:56 *An:* symfony-users@googlegroups.com *Betreff:* Re: [symfony-users] Functional tests for Form validators? The Pragmatic Programmer: From Journeyman to Master by Andrew Hunt and David Thomas labels their chapter on this topic Ruthless Testing which suggests one answer to your question. It's an excellent book. - Michael On Mon, Jun 14, 2010 at 4:12 AM, Christopher Schnell ty...@mda.ch wrote: Hi all, As I am writing lots of functional tests these days, I was wondering if one should test the standard validators of a form. Let’s say, we have a „change Password“ form. This simple form with three fields would require lots of tests, for example · Is the current password correct ? · Is the new passwort long enough · Is the new password entered twice · … Now all these „tests“ are implemented with standard validators. Would it be just lazy not to test these cases? How many tests do you write for such things? Thanks and regards, Christopher. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@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 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@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 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@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 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en