[Catalyst] detach behaviour clarification

Geoff Flarity geoff.flarity at gmail.com
Thu Nov 1 19:04:46 GMT 2007


Oh, whoops, those subs should be named _two and _three, typo.

My question was really if you 'detach' during a 'forward', does the code
after the forward get called. Apparently the answer is yes.

Geoff


On 11/1/07, Geoff Flarity <geoff.flarity at gmail.com> wrote:
>
> I'm sorry but I don't quite follow. Using '_three' is different than
> 'three'?
>
> Geff
>
>
>
> > > }
> > >
> > > sub three : Private {
> > >  my ($self, $c ) =3D @_;
> > >  $c->stash->{template} =3D 'three.tt2';
> > > }
> > >
> > > My current understanding is that the value of template should be
> > > three.tt2. Is this correct?
> >
> > It would be if you forwarded to 'two' and detached to 'three'.  You are
> > using '_two' and '_three'.
> >
> > Regards,
> > Jonathan Rockway
> >
> >
> > _______________________________________________
> > List: Catalyst at lists.scsys.co.uk
> > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> > Searchable archive:
> > http://www.mail-archive.com/catalyst@lists.rawmode.org/
> > Dev site: http://dev.catalyst.perl.org/
> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20071101/e473e=
842/attachment.htm


More information about the Catalyst mailing list