Okay!, i'm on my way out the door, so i did'nt have time to try the
following trick!.

i THINK the issue is;

$this->getUser() is not doing what i think it is!. The change did not
effect the actual "user" in the sfActions is dealing with.

SO, how about if i inherited the sfActions to mySessions, and then
mySessions to myControllerActions

class mySessions extends sfActions
{
  // the definition to my super class.
}

class myControllerActions extends mySessions
{
 // yadda yadda
}

Was'nt there a factory pattern example for symfony somewhere? i cannot
find it.

pishhhh, no multiple inheritance!! one of these days Ruby!



On Feb 9, 1:21 pm, mozey <[EMAIL PROTECTED]> wrote:
> I'm trying to write a class to manage my cookies. (my app has a
> few!!!). So during my attempt, i created mysession.class.php in /lib
> and thats working good.
>
> Here is how my class looks like
>
> class mySessions
> {
>    public function __construct($user, $id)
>    {
>       $this->id = $id;
>       $this->user = $user;
>    }
>
>    public function setCookieOn()
>    {
>       $this->user->setAttribute($this->id.'on', "1");
>    }
>
> }
>
> Now, in my controllers i'm doing this:
>
> $mysuppersession = new mySession($this->getUser(), "1");
> $mysupersession->setCookieOn();
>
> no parse errors, warnings or anything!, but my cookies dont get set!.
>
> any suggestions?
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to