why not just $c->forward?

On 7/13/06, Rodney Broom <[EMAIL PROTECTED]> wrote:
From: "Guillermo Roditi" <[EMAIL PROTECTED]>

> whatabout $c->controller()

That appears to work, thanks. The remaining cludge I've got in my code is carrying around the context. So far, I only need this for access to the stash. For intance, in my view:

  sub process {
    my $self = shift;
    my $c = shift;
    $self->{_app} = $c; # Save for $c->stash access later
    ...
    $self->NEXT::process($c, @_);
  }

I'm sure this is a situation of me not having read enough docs. Though, it seems odd that the context object would get passed in if I could just say something simple like $self->context. Of course, I'd settle for $self->stash. :)

---
Rodney Broom



_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to