[symfony-users] Re: app.yml array is not array on first level

2010-06-15 Thread Svetoslav Shterev
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

[symfony-users] Re: Plugin post install processing

2010-06-15 Thread Florian
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

[symfony-users] Component relationship with edit form

2010-06-15 Thread Apul Gupta
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

[symfony-users] IP address

2010-06-15 Thread HAUSa
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

Re: [symfony-users] IP address

2010-06-15 Thread Gábor Fási
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-users] routing error

2010-06-15 Thread yongSymfo
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

[symfony-users] Loading fixtures data error

2010-06-15 Thread dex
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:{

[symfony-users] sfWidgetFormChoice

2010-06-15 Thread Joe
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(

Re: [symfony-users] Re: I don't see images in production in a shared server

2010-06-15 Thread Pablo Rodriguez Monedero
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

[symfony-users] Invitation to view my posts on FriendFeed

2010-06-15 Thread hidensoft
(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

Re: [symfony-users] sfWidgetFormChoice

2010-06-15 Thread Gábor Fási
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

[symfony-users] Possible to write a table-less doctrine schema definition?

2010-06-15 Thread Christian Schaefer
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

[symfony-users] Re: Functional tests for Form validators?

2010-06-15 Thread Massimiliano Arione
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

[symfony-users] Recent viewed jobs not work on the production after upgrade to 1.4.5

2010-06-15 Thread scvroin
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

Re: [symfony-users] Possible to write a table-less doctrine schema definition?

2010-06-15 Thread Daniel Lohse
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

Re: [symfony-users] Form helper on symfony 1.4

2010-06-15 Thread Eno
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-users] ahDoctrineEasyEmbeddedRelationsPlugin csrf

2010-06-15 Thread DC
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

Re: [symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin csrf

2010-06-15 Thread Stéphane
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

Re: [symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin csrf

2010-06-15 Thread Stéphane
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

Re: [symfony-users] Possible to write a table-less doctrine schema definition?

2010-06-15 Thread Eno
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

[symfony-users] Re: ahDoctrineEasyEmbeddedRelationsPlugin csrf

2010-06-15 Thread DC
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!

[symfony-users] integrating galleria into symfony 1.4

2010-06-15 Thread el-sid
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

[symfony-users] Re: Failed to save form with multiple checkboxes

2010-06-15 Thread Svetoslav Shterev
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

[symfony-users] Re: Loading fixtures data error

2010-06-15 Thread Svetoslav Shterev
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

Re: [symfony-users] integrating galleria into symfony 1.4

2010-06-15 Thread Richard D Shank
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; ?

[symfony-users] Re: integrating galleria into symfony 1.4

2010-06-15 Thread el-sid
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

[symfony-users] Re: integrating galleria into symfony 1.4

2010-06-15 Thread el-sid
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

[symfony-users] Re: integrating galleria into symfony 1.4

2010-06-15 Thread el-sid
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

Re: [symfony-users] Re: integrating galleria into symfony 1.4

2010-06-15 Thread Richard D Shank
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

[symfony-users] Re: integrating galleria into symfony 1.4

2010-06-15 Thread el-sid
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

Re: [symfony-users] Functional tests for Form validators?

2010-06-15 Thread Michael Hodges
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