[symfony-users] Vedeţi în pagina dvs. de pornir e Google

2010-03-23 Thread versanu
Prietenul/prietena dvs. vers...@gmail.com va trimis următorul obiect gadget Google. Vedeţi pe pagina dvs. de pornire Google -- 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

[symfony-users] Vedeţi în pagina dvs. de pornir e Google

2010-03-23 Thread versanu
Prietenul/prietena dvs. vers...@gmail.com va trimis următorul obiect gadget Google. Vedeţi pe pagina dvs. de pornire Google -- 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

[symfony-users] best practice i18n date

2010-03-23 Thread Lea Haensenberger
Hi all, what's best practice to display culture dependent date formats? Do I have to call format_date() everywhere I want to display a culture dependent date? Or is there another more global way to do it? Cheers, Lea -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] how get an object saved in session

2010-03-23 Thread Belgacem TLILI
i have save an object ($book) in the user session with the name bk $this-getUser()-setAttribute('bk',$book); i need to save this object in the database after other actions i use $book= $this-getUser()-getAttribute('bk'); $book-save(); but this return all time null anybody have an idea plz

[symfony-users] Re: how get an object saved in session

2010-03-23 Thread Belgacem TLILI
i need to store object in session because i dont like to save them in database in the first action i'm doing a inscription form in 4 steps so i have to save the 3 object of the 3 first steps and when the user confirm his inscription i will save the 3 object in data base i dont like to save an

[symfony-users] frameset

2010-03-23 Thread Dave Helard
Hi Everyone, Can anybody has example of using frameset ? I am not able to find any way of using frameset with symfony. I dont know where to add the frameset tag and all. I tried something, but could get the result I want. If any one has done this before, please reply to my post. Regards, Dave.

Re: [symfony-users] best practice i18n date

2010-03-23 Thread Thomas Rabaix
format_date() is the way to go in template On Tue, Mar 23, 2010 at 10:14 AM, Lea Haensenberger baerne...@gmail.comwrote: Hi all, what's best practice to display culture dependent date formats? Do I have to call format_date() everywhere I want to display a culture dependent date? Or is

Re: [symfony-users] Re: how get an object saved in session

2010-03-23 Thread Gábor Fási
Then instead of saving an object, save an array that contains the properties of the object that you will create after the last step. Alternatively, you can try experimenting with the __sleep() and __wakeup() magic functions of your object, but the recommended way is the one above. On Tue, Mar 23,

[symfony-users] Re: how get an object saved in session

2010-03-23 Thread Raphael Schumacher
See: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/13 Subchapter User Attributes contains a note addressing the issue about storing objects directly: quote We could have feasibly stored the JobeetJob objects directly into the session. This is strongly discouraged because the session

Re: [symfony-users] best practice i18n date

2010-03-23 Thread Lea Hänsenberger
thanks On Mar 23, 2010, at 14:13 , Thomas Rabaix wrote: format_date() is the way to go in template On Tue, Mar 23, 2010 at 10:14 AM, Lea Haensenberger baerne...@gmail.com wrote: Hi all, what's best practice to display culture dependent date formats? Do I have to call format_date()

Re: [symfony-users] prefill login form

2010-03-23 Thread Lea Hänsenberger
anyone? On Mar 22, 2010, at 16:47 , Lea Haensenberger wrote: Hi all, I'd like to pre-fill the username of the sfDoctrineGuardPlugin login form, after the user registered and confirmed his email. Is there an easy way to pre-fill values in the login form or do I have to override the

Re: [symfony-users] prefill login form

2010-03-23 Thread Norbert Haigermoser
Am 3/23/10 2:48 PM, schrieb Lea Hänsenberger: anyone? On Mar 22, 2010, at 16:47 , Lea Haensenberger wrote: Hi all, I'd like to pre-fill the username of the sfDoctrineGuardPlugin login form, after the user registered and confirmed his email. Is there an easy way to pre-fill values in the

Re: [symfony-users] prefill login form

2010-03-23 Thread Syam
Extend the sfGuardFormSignin.class.php from sfDoctrineGuardPlugin, and in the configure method, use the setDefault('username', $value) method to what value you want ... example : class signinForm extends sfGuardFormSignin { public function configure() { parent::configure();

[symfony-users] Re: prefill login form

2010-03-23 Thread Manel
Maybe you can pass the username as a parameter and retrieve from the request. On 22 mar, 16:47, Lea Haensenberger baerne...@gmail.com wrote: Hi all, I'd like to pre-fill the username of the sfDoctrineGuardPlugin login form, after the user registered and confirmed his email. Is there an easy

Re: [symfony-users] Re: prefill login form

2010-03-23 Thread Lea Hänsenberger
Thanks for your answers. I saved the email to the user session and set it as default in the form. That works perfectly. On Mar 23, 2010, at 16:02 , Manel wrote: Maybe you can pass the username as a parameter and retrieve from the request. On 22 mar, 16:47, Lea Haensenberger

[symfony-users] demande_inscription

2010-03-23 Thread safa boubekri
bonjour je suis ingénieur d'état génie logiciel maintenant je développe une application avec symfony je trouve des difficultés pou créer une page d'authentification SVP comment puisse-je créer une page authentification en symfony avec sfDoctrineGuardPlugin -- If you want to report

[symfony-users] Best way to store app settings that are configurable from administrator interface

2010-03-23 Thread Adi VELICU
Hello, I am new to Symfony, but I did my best to document myself before asking this question. I have a couple of settings in my application which I've placed in app.yml for now. They are related to aspects of the application that should be modifiable by the administrator through a web interface.

[symfony-users] dmd_aide_symfony

2010-03-23 Thread safa boubekri
bonjour svp est ce que vous pouvez en m'éclaircir toute la configuration des fichiers .yml et tout car je trouve des difficultés pour créer une page d'authentification avec symfonyet le pluging sfDoctrineGuardPlugin merci d'avance -- If you want to report a vulnerability

Re: [symfony-users] prefill login form

2010-03-23 Thread safa boubekri
bonjour merci pour votre aide svp est ce que vous pouvez en m'éclaircir toute la configuration des fichiers .yml et tout car je trouve des difficultés merci d'avance -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

[symfony-users] Re: how get an object saved in session

2010-03-23 Thread Belgacem TLILI
now i have save the form fiels in an array then i have save this array in the user session $forms1= Array($form-getValues()); $this-getUser()-setAttribute('etab',$forms1); then: $a=$this-getUser()-getAttribute('etab'); $b=$a[0]; this return null ?? On Mar 23, 3:09 pm, Tom Haskins-Vaughan

Re: [symfony-users] frameset

2010-03-23 Thread Gareth McCumskey
Firstly I have no idea how to employ framesets in symfony, and I don't want to sound mean but to be perfectly honest a frameset in the vast majority of cases (and in my opinion all of them) are not necessary and there are so many other cleaner ways to actually get a site running without framesets.

Re: [symfony-users] Re: how get an object saved in session

2010-03-23 Thread Jérémie
Belgacem TLILI wrote: now i have save the form fiels in an array then i have save this array in the user session $forms1= Array($form-getValues()); $this-getUser()-setAttribute('etab',$forms1); then: $a=$this-getUser()-getAttribute('etab'); $b=$a[0]; this return null ?? Well, I'm not

[symfony-users] Re: how get an object saved in session

2010-03-23 Thread Jérémie
On 23 mar, 16:57, Jérémie jeremie.symf...@gmail.com wrote: Belgacem TLILI wrote: now i have save the form fiels in an array then i have save this array in the user session $forms1= Array($form-getValues()); $this-getUser()-setAttribute('etab',$forms1); then:

Re: [symfony-users] Re: how get an object saved in session

2010-03-23 Thread Tom Haskins-Vaughan
What does this produce: var_dump($a); On Tue, Mar 23, 2010 at 11:57 AM, Jérémie jeremie.symf...@gmail.com wrote: Belgacem TLILI wrote: now i have save the form fiels in an array then i have save this array in the user session $forms1= Array($form-getValues());

[symfony-users] Re: how get an object saved in session

2010-03-23 Thread Belgacem TLILI
$a[0] means it will return the 1st box of my array, On Mar 23, 5:02 pm, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: What does this produce:   var_dump($a); On Tue, Mar 23, 2010 at 11:57 AM, Jérémie jeremie.symf...@gmail.com wrote: Belgacem TLILI wrote: now i have save the form

Re: [symfony-users] Re: how get an object saved in session

2010-03-23 Thread Tom Haskins-Vaughan
But is it an array or an object with an array interface? On Tue, Mar 23, 2010 at 12:19 PM, Belgacem TLILI belgacem0...@gmail.com wrote: $a[0] means it will return the 1st box of my array, On Mar 23, 5:02 pm, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: What does this produce:  

[symfony-users] Re: how get an object saved in session

2010-03-23 Thread Belgacem TLILI
it's an array On Mar 23, 5:40 pm, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: But is it an array or an object with an array interface? On Tue, Mar 23, 2010 at 12:19 PM, Belgacem TLILI belgacem0...@gmail.com wrote: $a[0] means it will return the 1st box of my array, On Mar 23,

[symfony-users] Date format: es_ES

2010-03-23 Thread Javier Garcia
Hi, in the Edit action, i have a date widget with a format month/day/year. I would like that the format of that date widget was day/month/year. I have followed the manual, and i now i have this in my settings.yml all: .settings: default_culture: es_ES I have also removed the cookies as the

[symfony-users] GenerateUrl in a task

2010-03-23 Thread Sid Ferreira
Based on Steve the Canuck, I could do like is said in http://groups.google.com.br/group/symfony-users/msg/419fcd1ec6fd9ec4 But, how to do steps 1 and 2? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message

Re: [symfony-users] Date format: es_ES

2010-03-23 Thread Tom Haskins-Vaughan
which widget are you using? On Tue, Mar 23, 2010 at 2:14 PM, Javier Garcia tirengar...@gmail.com wrote: Hi, in the Edit action, i have a date widget with a format month/day/year. I would like that the format of that date widget was day/month/year. I have followed the manual, and i now i

Re: [symfony-users] Date format: es_ES

2010-03-23 Thread Javier Garcia
'fecha_nac'= new sfWidgetFormDate(), On 03/23/2010 07:36 PM, Tom Haskins-Vaughan wrote: which widget are you using? On Tue, Mar 23, 2010 at 2:14 PM, Javier Garciatirengar...@gmail.com wrote: Hi, in the Edit action, i have a date widget with a format month/day/year. I would

Re: [symfony-users] Date format: es_ES

2010-03-23 Thread Javier Garcia
On 03/23/2010 08:05 PM, Tom Haskins-Vaughan wrote: Try this:http://www.symfony-project.org/api/1_2/sfWidgetFormI18nDate Thanks, works! -- 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

[symfony-users] Adding a relationship field in a form

2010-03-23 Thread Mihai Rusoaie
Hello! I have 3 models: client, person and client_person: person: id: ~ name: { type: varchar(100), required: true, index: unique } ... client: id: ~ name: { type: varchar(255) } client_person:

[symfony-users] Re: frameset

2010-03-23 Thread Richtermeister
Framesets in symfony behave just the way they behave outside of symfony. In fact, symfony is not and should not be aware of framesets at all. They're simply a browser-construct to compose multiple individual requests into one screen, so, you're probably best off reading up on how framesets work in

[symfony-users] Re: GenerateUrl in a task

2010-03-23 Thread Sid Ferreira
with more time we do anything: $configuration = ProjectConfiguration::getApplicationConfiguration ('frontend', 'cli', true); $context = sfContext::createInstance($configuration); $routing = $context-getRouting(); $host =

Re: [symfony-users] Accessing user session from a custom routing class

2010-03-23 Thread Tom Haskins-Vaughan
+1 On Tue, Mar 16, 2010 at 1:17 PM, Jose Antonio Pio Gil joseto...@gmail.com wrote: I have the same question about it! 2010/3/16 HiDDeN davidmoralesmoj...@gmail.com Is there some way to acces the user object from a custom routing class? I'd like to add a parameter when generating a url,

[symfony-users] Re: Error 500 backend application in production

2010-03-23 Thread Jose San Gil
Hi Gábor, I checked in the settings.yml and the no_script_name is enable. Also, I took a look to the login form's template signinSuccess.php and the action is ok: ?php echo url_for('@sf_guard_signin') I don't know if this has something to do, but the first application that I created was the