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 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: >display: > NONE:

[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" wrote: > I think he means not making a template but messing around with the > generator y

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

2010-02-03 Thread ken
sfOutputEscaperObjectDecorator::offsetExists On Feb 4, 12:38 am, Mark Smith 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 an sfOutputEscaperO

[symfony-users] Question Regarding Forms And Their Names

2010-02-03 Thread Darren884
I ran into a form with this customer[amount[text] What is that [text]? And how do I apply it to other fields? I have been having issues with other fields and I believe the [text] is the answer. -- You received this message because you are subscribed to the Google Groups "symfony users" group. T

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= Audi

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();

[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_i

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 wrote: > Hiii i am new to the s

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 ig

[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

[symfony-users] sfOutputEscaperObjectDecorator with isset() ?

2010-02-03 Thread Mark Smith
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 an sfOutputEscaperObjectDecorator, isset always returns false, even when the property is there. As a workaround I am

[symfony-users] Re: Images source problem

2010-02-03 Thread wueb
Between, the sfConfig::get('app_upload_avatars') have the following value = "users/avatars/" -- 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, se

[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 inste

[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-use

[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 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, because think a

[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
Is there a way to do this in the generator instead of the template? I think the generator needs a good chapter on it. Does anyone know where such documentation on the generator exists. this specific question, plus others like how to embed nested/a set of doctrine elements in the same tool while on

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 mea

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 becaus

[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 Stephen Melrose
I thought a custom widget would be the way to go. However, I've never made one with multiple fields within it. Can you give me/link me to an example of how to do this? Thanks. On 3 Feb, 14:34, Stefan Paschke wrote: > Hi Stephen > > If you don't want to have to write all 4 fields individually in

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 a

[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

[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 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 plugin really

[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: 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 wrote: > Try > unset($this->validatorSchema['yourfild']); > > On 2 ún, 10:52, l3ia-etu wrote: > > > yes, that's good ! > > > so, i will set the widget readonly: > > >                  

[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 optio

Re: [symfony-users] Re: No Propel in Available Tasks: upgrade from Symfony 1.1 to 1.2/1.3

2010-02-03 Thread Rebecca Bielecki
Thanks for all your help with this - I've now got the propel tasks working by generating a new project and changing the ProjectConfiguration.class.php to enable sfPropelPlugin and now the Propel tasks are displayed and I am just updating the source from svn. Why the enabling of the sfPropelPlug