NAME
Reaction::UI::Widget::Controller
DESCRIPTION
Base Reaction Controller class. Inherits from:
METHODS
push_viewport $vp_class, %args
Will create a new instance of $vp_class with the arguments of %args merged in with any arguments in the ViewPort attribute of the current Catalyst action (also accessible through the controller config), add it to the main FocusStack ($c->stash->{focus_stack}
) and return the instantiated viewport.
TODO: explain how next_action as a scalar gets converted to the redirect arrayref thing
pop_viewport
pop_viewport_to $vp
Shortcut to subs of the same name in the main FocusStack ($c->stash->{focus_stack}
)
redirect_to $c, $to, $captures, $args, $attrs
If $to
is a string then redirects to the action of the same name in the current controller ($c->controller
not $self
).
If $to
isa Catalyst::Action it will pass the argument directly to $c->uri_for
.
If $to
is an ArrayRef with two items it will treat the first as a Controller name and the second as the action name whithin that controller.
$captures
, $args
, and $attrs
are equivalent to the same arguments in uri_for
. If left blank the current request captures and args will be used and $attrs
will be passed as an empty HashRef.
AUTHORS
See Reaction::Class for authors.
LICENSE
See Reaction::Class for the license.