| 1 | package XTaTIK::Controller::Search; | ||
| 2 | |||
| 3 | 1 | our $VERSION = '0.001002'; # VERSION | |
| 4 | |||
| 5 | 1 | ▶ | use Mojo::Base 'Mojolicious::Controller'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use XTaTIK::Common qw/n_to_br/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | sub search { | ||
| 9 | 0 | ▶ | my $self = shift; |
|
Subroutine
search: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 10 | |||
| 11 | 0 | $self->stash( | |
| 12 | template => 'root/search', | ||
| 13 | products => [ | ||
| 14 | $self->products->get_by_id( | ||
| 15 | $self->product_search->search( $self->param('term') ) | ||
| 16 | ) | ||
| 17 | ], | ||
| 18 | ); | ||
| 19 | } | ||
| 20 | |||
| 21 | 1 | 1; | |
| 22 | |||
| 23 | __END__ | ||