1SubRequest(3)         User Contributed Perl Documentation        SubRequest(3)
2
3
4

NAME

6       Catalyst::Plugin::SubRequest - Make subrequests to actions in Catalyst
7

SYNOPSIS

9           use Catalyst 'SubRequest';
10
11           $c->subreq('/test/foo/bar', { template => 'magic.tt' });
12
13           $c->subreq(        {       path            => '/test/foo/bar',
14                              body            => $body        },
15                      {       template        => 'magic.tt'           });
16

DESCRIPTION

18       Make subrequests to actions in Catalyst. Uses the  catalyst dispatcher,
19       so it will work like an external url call.
20

METHODS

22       subreq [path as string or hash ref], [stash as hash ref], [parameters
23       as hash ref]
24       sub_request
25           Takes a full path to a path you'd like to dispatch to.  If the path
26           is passed as a hash ref then it can include body, action, match and
27           path.  Any additional parameters are put into the stash.
28

SEE ALSO

30       Catalyst.
31

AUTHOR

33       Marcus Ramberg, "mramberg@cpan.org"
34

THANK YOU

36       SRI, for writing the awesome Catalyst framework
37
39       This program is free software, you can redistribute it and/or modify it
40       under the same terms as Perl itself.
41
42
43
44perl v5.8.8                       2007-04-02                     SubRequest(3)
Impressum