pkgsrc/www/p5-Catalyst-Component-ACCEPT_CONTEXT/distinfo
abs 3574577ad7 Added www/p5-Catalyst-Component-ACCEPT_CONTEXT version 0.05
Models and Views don't usually have access to the request object,
since they probably don't really need it. Sometimes, however, having
the request context available outside of Controllers makes your
application cleaner. If that's the case, just use this module as
a base class:

    package MyApp::Model::Foobar;
    use base qw|Catalyst::Component::ACCEPT_CONTEXT Catalyst::Model|;

Then, you'll be able to get the current request object from within
your model:

    sub do_something {
	my $self = shift;
	print "The current URL is ". $self->context->req->uri->as_string;
    }
2008-07-15 09:15:42 +00:00

5 lines
320 B
Text

$NetBSD: distinfo,v 1.1.1.1 2008/07/15 09:15:42 abs Exp $
SHA1 (Catalyst-Component-ACCEPT_CONTEXT-0.05.tar.gz) = ed1befbec7efe435aea2b9d13d482e805aa8d5e4
RMD160 (Catalyst-Component-ACCEPT_CONTEXT-0.05.tar.gz) = 48420ffb114dafdf9b721443bd12524c151c2828
Size (Catalyst-Component-ACCEPT_CONTEXT-0.05.tar.gz) = 22033 bytes