This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package My::Controller::Search { | |
use Mojo::Base 'Mojolicious::Controller'; | |
sub simple_search { | |
my ($c) = @_; | |
# use reads and writes to $c->param(...) to get params set up in the way | |
# expected by complex_search. Things can be replaced and copied around, | |
# whatever you want. | |
return $c->complex_search(); | |
} | |
sub complex_search { | |
my ($c) = @_; | |
# do the complex search stuff supporting the full suite of search options | |
# enjoy life with all the work in one place. | |
} | |
} | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment