This commit is contained in:
mynah
2018-08-15 05:07:04 +00:00
parent dad034eed3
commit 96764c0847
2 changed files with 24 additions and 1 deletions

View File

@@ -2,7 +2,6 @@ package Dojo::Controller::Home;
use Mojo::Base 'Mojolicious::Controller';
use Mojo::Template;
use Dojo::Support qw{ log dmph merge_hash load_module get_names};
use Dojo::Conf;
sub tst{
my $c=shift;
# $c->stash( merge_hash(
@@ -60,6 +59,12 @@ sub tst{
my $c = shift;
if ($c->param("mup")){
$c->flash(mname => $c->param("mname"));
$c->dbv->contact(
$c->param("mname"),
$c->param("mail"),
$c->match->stack->[-1]{action},
$c->param("msg")
);
$c->redirect_to('contact2');
}else{
$c->stash((load_module("home/contact"))[0]);