Catalyst::Wizard

Catalyst::Plugin::Wizard-like functionality, but in some more flexible and correct way.
Download

Catalyst::Wizard Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Pavel Boldin
  • Publisher web site:
  • http://search.cpan.org/~davinchi/

Catalyst::Wizard Tags


Catalyst::Wizard Description

Catalyst::Plugin::Wizard-like functionality, but in some more flexible and correct way. Catalyst::Wizard is a Perl module that provides same functionality like Catalyst::Plugin::Wizard but in some more flexible and correct way.SYNOPSISPlain: # create new wizard my $wizard = Catalyst::Wizard->new( $c ); # add steps for that wizard $wizard->add_steps( -detach => '/user/login', '/user/login_submit' ); $wizard->add_steps( -last => -redirect => '/user/logout' ); # mark step to go to next step after this action $wizard->goto_next; # perform step (calls redirect/detach/forward/whatever) $wizard->perform_step;With Catalyst::Action::Wizard and CatalystX::Wizarded: # just appending step $c->wizard( '/append_this_step' ); # just marking as goto_next # NOTE: wizards can either 'die' after this (like in detach) # or just mark wizard as 'goto_next' $c->wizard->goto_next; # adding -last action in wizard (only one added, other # '-last' actions ignored). synonym for -default in C::P::W $c->wizard( -last => -redirect => '/logout' )->goto_next; # make step back (in case some errors happen) $c->wizard->back_to( -redirect => '/append_this_step' ); # stash into wizard my $wizard_stash = $c->wizard->stash; $wizard_stash->{parameters} = { %{ $c->req->params } }; if ( $c->have_wizard ) { $c->wizard->goto_next; }In TT: Requirements: · Perl


Catalyst::Wizard Related Software