Re: [symfony-users] Need to hide sfWidgetFormDoctrineChoice dropdown when editing existing record

2010-12-25 Thread Alan Bem
If you want to hide any widget, don't outputing them is not a good (secure) choice. Here's better idea: In configure() method of your form put if($this->getObject()->isNew()) { $this->widgetSchema['preference_id'] = //etc $this->validatorSchema['preference_id'] = //etc } or in case prefe

[symfony-users] Need to hide sfWidgetFormDoctrineChoice dropdown when editing existing record

2010-12-25 Thread dmitrypol
I have a form where users can declare their preferences (pref1, pref2, pref3, etc) and importance of each one (very important, somewhat important, not important). Once they declare the preference they should be able to change the importance but not the preference. I have a form class: $this->setW

[symfony-users] Re: PHP 5.3.x on Leopard

2010-12-25 Thread Julian Reyes Escrigas
thanks that is the solution -- 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@googlegrou

[symfony-users] Re: PHP 5.3.x on Leopard

2010-12-25 Thread Dominik Tuleweit
ok, but i think that on your system there are also 2 times php installed, one 5.2.x and one 5.3 ; for using php on the terminal (CLI Version) the old one is "registered" but you need the new one. so my thought is, that you search for the place of your 5.3.x version and add a symlink in your /

[symfony-users] Re: PHP 5.3.x on Leopard

2010-12-25 Thread Julian Reyes Escrigas
domink you dont understand me i need change the command php, by default php 5.3 without select a specify folder -- 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 Grou

Re: [symfony-users] Re: PHP 5.3.x on Leopard

2010-12-25 Thread Dominik Tuleweit
be sure that you have the ./ before php -v: copy&paste this: ./php -v Am 25.12.2010 um 15:45 schrieb Julian Reyes Escrigas: when i typo php -v on /usr/bin or every place showme the 5.2.8 and i have installed 5.3.4 with brew -- If you want to report a vulnerability issue on symfony, please

[symfony-users] Re: PHP 5.3.x on Leopard

2010-12-25 Thread Julian Reyes Escrigas
when i typo php -v on /usr/bin or every place showme the 5.2.8 and i have installed 5.3.4 with brew -- 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 us

[symfony-users] Re: displaying collection/s in templates

2010-12-25 Thread Richtermeister
Hey introvert, you're on the right track. You definitely want to avoid putting view- specific code into your model, so, yes, rendering this content is up to helper methods or classes. For example, to render trees, I have a class that takes a nested set (something that implements IteratorAggregate)