[symfony-users] Re: How to make use of Twig in symfony 2 ?

2010-02-27 Thread extesy
Thanks, Ad! Until Fabien decides to provide an official support for Twig, your code is the best choice there is. On Feb 25, 7:34 am, Ad van der Veer wrote: > Hey i haven noticed your post is already a few days old. > > Me two tried to integrate Twig into a Bundle for Symfony 2. The code > for thi

[symfony-users] doctrine data-dump doesn't dump items with an active=false attribute

2010-02-27 Thread bretth
I have a table in my schema defined as: foo: actAs: { Timestampable: ~ } columns: code: { type: varchar(8) } name: { type: varchar(64) } symbol: { type: varchar(64) } active: { type: boolean, default: false, notnull: true } weight: { type: integer } I have just found that

[symfony-users] Re: addcredential creates new session_id

2010-02-27 Thread Pino
Never mind, I found the answer here: http://groups.google.com/group/symfony-users/browse_thread/thread/7d83689dcca77a28/d9596bafe98ab32d?lnk=gst&q=setAuthenticated+session#d9596bafe98ab32d I guess I have to leave it to the garbage collector. On 27 feb, 13:58, Pino wrote: > Gábor, Daniel, > > Ta

[symfony-users] Re: addcredential creates new session_id

2010-02-27 Thread Pino
Gábor, Daniel, Tanks for your responses. Ok so security is the reason. That raises another question. I store my session data in the database. When my session_id gets regenerated the old session_id is still in the database, why doesn't this old session get cleaned up then? Going to my site and logg

Re: [symfony-users] addcredential creates new session_id

2010-02-27 Thread Gábor Fási
It is a security measure to prevent session fixation (and probably other) attacks. On Sat, Feb 27, 2010 at 13:29, Daniel Lohse wrote: > It's correct that the session id gets regenerated. If you have a look at the > sfBasicSecurityUser class you'll see that it calls > $this->storage->regenerate(

Re: [symfony-users] addcredential creates new session_id

2010-02-27 Thread Daniel Lohse
It's correct that the session id gets regenerated. If you have a look at the sfBasicSecurityUser class you'll see that it calls $this->storage->regenerate(false). It doesn't destroy the session (the false parameter indicates this) and the sfSessionStorage class calls PHP's own session_regenerat

[symfony-users] Re: How to use framset with symfony?

2010-02-27 Thread wissl
As Tarjei wrote: src of a frame should NOT be html code itself, but the URI to a webpage. So you could try something like this: It's still the question why anyone should use framsets as we have slots and components in symfony... On 26 Feb., 10:03, "Sameer Bhavsar"

[symfony-users] addcredential creates new session_id

2010-02-27 Thread Pino
Hi, I noticed that after calling addcredential() in Symfony 1.2.11 my session_id gets regenerated. Is this normal behaviour and why is this? -- 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

[symfony-users] Re: handle processForm()

2010-02-27 Thread jp_morvan
Hi, Did you try in you model file to override the method setName() ? public function setName($name){ $letter = strtoupper(substr($name, 0, 1)); $this->setLetter($letter); parent::setName($name); } On 27 fév, 10:51, verox wrote: > I'm trying this while creating new object. > Overwrite  prot

[symfony-users] Re: handle processForm()

2010-02-27 Thread verox
I'm trying this while creating new object. Overwrite protected function processForm(sfWebRequest $request, sfForm $form) -- 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 Goog