Catalyst::Model::Factory - use a plain class as a Catalyst model, instantiating it every time it is requested
This module works just like Catalyst::Model::Adaptor, except that a fresh instance of your adapted class is created every time it is requested via $c->model.
$c->model
You can customize your subclass just like Catalyst::Model::Adaptor. Instead of $app, though, you'll get $c, the current request context.
$app
$c
These methods are called by Catalyst, not by you:
Load your class
Create an instance of your class and return it.
For all the critical documentation, see Catalyst::Model::Adaptor.
To install Catalyst::Model::Adaptor, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Model::Adaptor
CPAN shell
perl -MCPAN -e shell install Catalyst::Model::Adaptor
For more information on module installation, please visit the detailed CPAN module installation guide.