[symfony-users] How to upload a database to the production server with symfony ?

2010-02-03 Thread Javier Garcia
Hi, just that. 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

[symfony-users] Re: generator.yml : disallow a field modification for a user that doesn't have a credential

2010-02-03 Thread l3ia-etu
that doesn't works: Fatal error: Can't use method return value in write context On 2 fév, 17:33, Tom Ptacnik to...@tomor.cz wrote: Try unset($this-validatorSchema['yourfild']); On 2 ún, 10:52, l3ia-etu emmanuel.tul...@gmail.com wrote: yes, that's good ! so, i will set the widget

[symfony-users] Re: How to set trim default option on all widgets in a Form

2010-02-03 Thread Florian
By reading the discussion, I didn't noticed any DRY solution... this one could help you, even if it's -maybe- not the fastest, but the DRY'est : //for sf 1.3 in lib/form/BaseForm.class.php {{{ public function setup() { parent::setup(); foreach($this-getValidatorSchema()-getFields()

[symfony-users] Re: How to set trim default option on all widgets in a Form

2010-02-03 Thread Florian
By reading the discussion, I didn't noticed any DRY solution... this one could help you, even if it's -maybe- not the fastest, but the DRY'est : //for sf 1.3 in lib/form/BaseForm.class.php {{{ public function setup() { parent::setup(); foreach($this-getValidatorSchema()-getFields()

[symfony-users] Re: Can't install sfAdminDashPlugin :-(

2010-02-03 Thread Kevin
Thanks Eddie, I believe installing plugins with svn:externals is considered best practice anyway. On Jan 17, 6:07 pm, EddieG ed...@umdiewelt.de wrote: Hi Kevin, thanx, that helped a lot! I now have it running, using svn:externals set to the 0.9.1. release. Works like charme and I think your

[symfony-users] [1.3/1.]How to best implement an address using the Symfony 1.3/1.4 Form Framework?

2010-02-03 Thread Stephen Melrose
I have a database table with the following fields, address_1 address_2 address_3 address_4 Currently in my generated form there are 4 sfWidgetFormInputText widgets, one for each field. These render out in their own rows with their own labels, errors, etc. I'd like to group these 4 fields into 1

Re: [symfony-users] [1.3/1.]How to best implement an address using the Symfony 1.3/1.4 Form Framework?

2010-02-03 Thread Stefan Paschke
Hi Stephen If you don't want to have to write all 4 fields individually in the view, you'd need a custom widget, I don't see how an embedded form would do this. I have written a few custom widgets that represent several correlated values, such as 'clothing size' and 'clothing size key', which

Re: [symfony-users] Doctrine data-load out of memory (Ticket #7733)

2010-02-03 Thread Andrei Dziahel
Hello. I did. Fixtures' size was ~400kb total. Symfony 1.2, Doctrine 1.0. I had to increase memory_limit to (IIRC) 128Mb. This issue looks for me pretty easy-explainable. Doctrine_Import currently is actually forced to store ALL the objects recreated from fixtures in memory while importing

Re: [symfony-users] Re: [1.3/1.4] How to best implement an address using the Symfony 1.3/1.4 Form Framework?

2010-02-03 Thread Stefan Paschke
Actually, the example I thought of was done with two separate widgets. But I found another, a form where the user can enter measurements in a choice of units (inches or centimeters). The etWidgetFormJQuerySliderWithUnits widget renders a jQuery UI slider. The unit widget is used over several

[symfony-users] Re: generator.yml : disallow a field modification for a user that doesn't have a credential

2010-02-03 Thread a...@speedypin.com
I think he means not making a template but messing around with the generator yaml. On Feb 1, 10:50 am, Richtermeister nex...@gmail.com wrote: Hey there, I know that sounds like a good idea, but it really isn't. The right place to control access to form fields is in the form class itself,

[symfony-users] Date Input Widgets in Symfony 1.2 ... 1.4

2010-02-03 Thread Carlos Henrique
Someone implemented Input Widgets in Symfony 1.2 ... 1.4? 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] Images source problem

2010-02-03 Thread wueb
Hi, i'm getting a problem on the images source. Here: http://localhost/frontend_dev.php/settings - My image works fine. Here: http://localhost/frontend_dev.php/settings/edit - My image doesn't work fine. The problem is that he looks to the action like a folter and the source should be img

[symfony-users] dependent form validator

2010-02-03 Thread jignesh patel
Hiii i am new to the symfony framework. I am having form with some widgets and respected validators. Now my question is how can i create validator which dependent on previous or any of the widgets values. I am having price text field and not_price checkbox, if i check check box not_priced price

Re: [symfony-users] Logging not working.

2010-02-03 Thread Frank Stelzer
You should have a look at this doc page: http://www.symfony-project.org/book/1_0/19-Mastering-Symfony-s-Configuration-Files#Symfony%20Settings The logging in production environment has to be enabled via the logging_enabled flag in the settings.yml first. Otherwise the logging.yml will be

Re: [symfony-users] dependent form validator

2010-02-03 Thread Stéphane
Hi, Take a loot at sfValidatorCallback and validatorSchema post validation. Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Tue, Feb 2, 2010 at 2:13 PM, jignesh patel

[symfony-users] Auto save data

2010-02-03 Thread Germana Oliveira
im trying to make the system to save some data, so i do this: $audiencia = new Audiencia(); //DATOS// $ordenado = sfContext::getInstance()-getUser()-getEmpleadoUsuario('id'); $correlativo= Audiencia::obtenerCorrelativo(); $tipo_proceso_id

Re: [symfony-users] Auto save data

2010-02-03 Thread Frank Stelzer
What should this snippet do? You do not call any setter of your model. btw: '.date('Y').'-'.date('m').'-01' - date('Y-m').'-01' looks better :P Am 03.02.2010 um 22:23 schrieb Germana Oliveira: im trying to make the system to save some data, so i do this: $audiencia = new Audiencia();

Re: [symfony-users] Auto save data

2010-02-03 Thread Germana Oliveira
Holy /%$·(***:X .. well i have an excuse: it was late!!! of course you're right, the code is: $audiencia = new Audiencia(); //DATOS// $ordenado = sfContext::getInstance()-getUser()-getEmpleadoUsuario('id'); $correlativo=

[symfony-users] Re: sfOutputEscaperObjectDecorator with isset() ?

2010-02-03 Thread ken
sfOutputEscaperObjectDecorator::offsetExists On Feb 4, 12:38 am, Mark Smith marksmith5...@jungle-monkey.com wrote: Hi, In my template I only want to print properties that exist. In pure PHP I would use isset: echo isset($object-property) ? $object-property : ; However when the object is

[symfony-users] Re: generator.yml : disallow a field modification for a user that doesn't have a credential

2010-02-03 Thread ken
As for me, I usually keep generator.yml in it's default form. All of my customizations are done by overriding the generated classes and templates. Keeps me more sane. On Feb 3, 11:35 pm, a...@speedypin.com a...@speedypin.com wrote: I think he means not making a template but messing around with

Re: [symfony-users] generator.yml : disallow a field modification for a user that doesn't have a credential

2010-02-03 Thread basos g
On 1 February 2010 17:00, l3ia-etu emmanuel.tul...@gmail.com wrote: hi everyone, i would like to customize an edit action: i would like to disallow the modification of a field from user that has not a credential: i can disallow the edition of a field for all users: config: form: