NAME
Mojolicious::BModel::Base -- base class for models
SYNOPSIS
package
MyApp::Model::MyModel;
use
strict;
use
warnings;
sub
my_method {
my
$self
=
shift
;
say
$self
->app;
# your mojo application
say
$self
->config;
# your application config. It can be also called through $self->app->config
}
1;
DESCRIPTION
This is the base class
for
model classes. All model classes have to be inherited from this class
LICENSE
Copyright (C) 2015-2017 Alexander Ruzhnikov.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
Alexander Ruzhnikov <ruzhnikov85@gmail.com>