The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Catalyst::Dispatcher - The Catalyst Dispatcher

SYNOPSIS

See Catalyst.

DESCRIPTION

METHODS

$c->detach( $command [, \@arguments ] )

Like forward but doesn't return.

$c->dispatch

Dispatch request to actions.

$c->forward( $command [, \@arguments ] )

Forward processing to a private action or a method from a class. If you define a class without method it will default to process(). also takes an optional arrayref containing arguments to be passed to the new function. $c->req->args will be reset upon returning from the function.

    $c->forward('/foo');
    $c->forward('index');
    $c->forward(qw/MyApp::Model::CDBI::Foo do_stuff/);
    $c->forward('MyApp::View::TT');
$c->get_action( $action, $namespace, $inherit )

Get an action in a given namespace.

$c->set_action( $action, $code, $namespace, $attrs )

Set an action in a given namespace.

$class->setup_actions($component)

Setup actions for a component.

AUTHOR

Sebastian Riedel, sri@cpan.org

COPYRIGHT

This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.