Catalyst::Enzyme::Controller - Enzyme Controller Base Class with


Catalyst-Enzyme documentation  | view source Contained in the Catalyst-Enzyme distribution.

Index


NAME

Top

Catalyst::Enzyme::Controller - Enzyme Controller Base Class with utility methods

SYNOPSIS

Top

See Catalyst::Enzyme

PROPERTIES

Top

METHODS

Top

run_safe($c, $sub, $fail_action, $fail_message, @rest)

Run the $sub->(@rest) ref inside an eval cage, and return 1.

Or, if $sub dies, set stash->{message} to $fail_message, stash->{error} to $@, log the error, shed a tear, and return 0.

class_to_moniker($class_name)

Return default moniker of $class_name.

Default is to take the last past of the $class_name, and split it on lower/uppercase boundaries.

If one can't be figured out, return the $class_name.

AUTHOR

Top

Johan Lindstrom <johanl ÄT cpan.org>

LICENSE

Top

This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.


Catalyst-Enzyme documentation  | view source Contained in the Catalyst-Enzyme distribution.