[Catalyst] Has $c->response->redirect behaviour changed?
Nigel Metheringham
nigel.metheringham at dev.intechnology.co.uk
Wed Jan 25 13:30:44 CET 2006
On Wed, 2006-01-25 at 12:10 +0000, Chisel Wright wrote:
> On Wed, Jan 25, 2006 at 12:04:49PM +0000, Chisel Wright wrote:
> > Yes, the double use of $c did make me suspicious. I blindly followed the
> > example in the link: http://catalyst.perl.org/calendar/2005/8/
> >
> > I kept meaning to change to $self to see what happens, or ask about it
> > but I keep forgetting.
>
> No appreciable difference, and formfill() still chomps the last word
> off.
As I understand it $c is (until they change it) an application object -
so an object of class MyApp (for whatever app you are building), whereas
$self is an object of the class you are currently within (quietly
ignoring inheritance etc).
So for actions in the main application class the class of $self and $c
are going to be the same - in fact they are probably the same object.
In other places in your tree this will not be the case.
Nigel.
--
[ Nigel Metheringham Nigel.Metheringham at InTechnology.co.uk ]
[ - Comments in this message are my own and not ITO opinion/policy - ]
More information about the Catalyst
mailing list