[symfony-users] [i18n] use extract task on variables

2010-03-23 Thread Redouane Belhamissi
Hi, Would it be possible to run i18n extract task on variables ? Even with ugly method ? Thx in advance, Red1 -- 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] The "Practical symfony" book translation into Czech

2010-03-23 Thread Martin Sikora
Hello, my name is Martin and I work in a Czech web development company in Prague, Czech Republic. We are using Symfony framework for all our projects and I have noticed that the Symfony documentation had been translated into several languages. I wanted to ask you if there is a way how can I contri

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

2010-03-23 Thread Alex
Hello, we're using database and custom config handler which parses database settings into *.yml.php file which then used by standard symfony routines. The *.yml.php file unlinkes when administrator changes some settings in backend. Alex ansata web group On 23 мар, 17:04, Adi VELICU wrote: > Hell

[symfony-users] Losing data upon creating new tables

2010-03-23 Thread Parijat Kalia
Hey, So we all know that when you create new tables with Symfony in the database, it will delete all the existing data in the database. I don't want that to happen. Is symfony trying to tell me that there is no way around this? That I absolutely must loose all my data so as to be able to add new

[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: wrote: > Check your loginform's template to see if it echoes the correct url in > the action property, also check if you have no_scri

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 wrote: > I have the same question about it! > > > 2010/3/16 HiDDeN >> >> 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, and that parameter >> is inside th

[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 = sfConfig::g

[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] 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:

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 su

Re: [symfony-users] Date format: es_ES

2010-03-23 Thread Tom Haskins-Vaughan
Try this: http://www.symfony-project.org/api/1_2/sfWidgetFormI18nDate On Tue, Mar 23, 2010 at 3:02 PM, Javier Garcia wrote: > '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

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 Garcia wrote: Hi, in the Edit action, i have a date widget with a format month/day/year. I would like that the format of

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 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 have this in my s

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

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

[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 wrote: > But is it an array or an object with an array interface? > > On Tue, Mar 23, 2010 at 12:19 PM, Belgacem TLILI > wrote: > > $a[0] means it will return the 1st box of my array, > > > On Mar 23, 5:02 pm, Tom Haskins-Vaughan > > wrote:

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 wrote: > $a[0] means it will return the 1st box of my array, > > On Mar 23, 5:02 pm, Tom Haskins-Vaughan > wrote: >> What does this produce: >> >>   var_dump($a); >> >> On Tue, Mar 23, 2010

[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 wrote: > What does this produce: > >   var_dump($a); > > On Tue, Mar 23, 2010 at 11:57 AM, Jérémie wrote: > > Belgacem TLILI wrote: > > >> now i have save the form fiels in an array > >> then i have save

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 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',

[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 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: > > $a=$this->getUser()->getAttribut

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

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.

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

[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. I

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

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] 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

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 wrote: >> H

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

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(); $this->set

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 lo

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

2010-03-23 Thread Tom Haskins-Vaughan
What is the problem with storing the inscription in the database? Even if the user cancels before finishing you could either just delete the record after a predetermined time or use the record as data on how many people are completing how many of your steps. You might find that 4 steps is too many

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 execu

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 > wrote: > Hi all, > what's best practice to display culture dependent date formats? Do I > have to call format_date() everywhere I wan

[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: We could have feasibly stored the JobeetJob objects directly into the session. This is strongly discouraged because the session variables

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,

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 wrote: > 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 g

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

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

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

2010-03-23 Thread Tom Haskins-Vaughan
I don't think storing objects is recommended. I think the prefered method is to save the object and store the id in the user session. On 3/23/10, Belgacem TLILI wrote: > i have save an object ($book) in the user session with the name bk > > $this->getUser()->setAttribute('bk',$book); > > i need

[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

Re: [symfony-users] symfony 1.4 -> 2.0

2010-03-23 Thread Gareth McCumskey
Not to mention that I also submitted this exact same question to this mailing list not too long ago and the shortened response was yes there will be a way to upgrade but it wont be as seamless as say 1.2 -> 1.3 and will require some additional work to transform the application, but the Symfony deve

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

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

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