1Catalyst::Action::RendeUrsVeirewC(o3n)tributed Perl DocuCmaetnatlaytsito:n:Action::RenderView(3)
2
3
4

NAME

6       Catalyst::Action::RenderView - Sensible default end action.
7

SYNOPSIS

9           sub end : ActionClass('RenderView') {}
10

DESCRIPTION

12       This action implements a sensible default end action, which will for‐
13       ward to the first available view, unless status is set to 3xx, or there
14       is a response body. It also allows you to pass "dump_info=1" to the url
15       in order to force a debug screen, while in debug mode.
16
17       If you have more than one view, you can specify which one to use with
18       the "default_view" config setting (see Catalyst's "$c-"view($name)>
19       method).
20

METHODS

22       end
23
24       The default "end" action. You can override this as required in your
25       application class; normal inheritance applies.
26

INTERNAL METHODS

28       execute
29
30       Dispatches control to superclasses, then forwards to the default View.
31
32       See "METHODS/action" in Catalyst::Action.
33

SCRUBBING OUTPUT

35       When you force debug with dump_info=1, RenderView is capable of remov‐
36       ing classes from the objects in your stash. By default it will replace
37       any DBIx::Class resultsource objects with the class name, which cleans
38       up the debug output considerably, but you can change what gets scrubbed
39       by setting a list of classes in $c->config->{debug}->{ignore_classes}.
40       For instance:
41
42           $c->config->{debug}->{ignore_classes}=[];
43
44       To disable the functionality. You can also set config->{debug}->{scrub‐
45       ber_func} to change what it does with the classes. For instance, this
46       will undef it instead of putting in the class name:
47
48           $c->config->{debug}->{scrubber_func}=sub { undef $_ };
49

EXTENDING

51       To add something to an "end" action that is called before rendering,
52       simply place it in the "end" method:
53
54           sub end : ActionClass('RenderView') {
55             my ( $self, $c ) = @_;
56             # do stuff here; the RenderView action is called afterwards
57           }
58
59       To add things to an "end" action that are called after rendering, you
60       can set it up like this:
61
62           sub render : ActionClass('RenderView') { }
63
64           sub end : Private {
65             my ( $self, $c ) = @_;
66             $c->forward('render');
67             # do stuff here
68           }
69

AUTHOR

71       Marcus Ramberg <marcus@thefeed.no>
72

LICENSE

74       This library is free software. You can redistribute it and/or modify it
75       under the same terms as Perl itself.
76
77
78
79perl v5.8.8                       2007-09-01   Catalyst::Action::RenderView(3)
Impressum