Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Catalyst::Model::DynamUseraContributed Perl Catalyst::Model::DynamicAdaptor(3)

NAME
       Catalyst::Model::DynamicAdaptor - Dynamically load adaptor modules

VERSION
       0.01

SYNOPSIS
	package	App::Web::Model::Logic;

	use base qw/Catalyst::Model::DynamicAdaptor/;

	__PACKAGE__->config(
	   class => 'App::Logic', # all	modules	under App::Logic::* will be loaded
	   # config => { foo =>	'foo' ,	bar => 'bar' },	# constractor parameter	for each loading module	)
	   # mrr_args => { path	=> '/foo/bar' }	# Module::Recursive::Require parameter.
	);

	1;

	package	App::Web::Controller::Foo;

	sub foo	: Local	{
	   my (	$self, $c ) = @_;

	   # same as App::Logic::Foo->new->foo(); if you have App::Logic::Foo::new
	   # same as App::Logic::Foo->foo(); # if you do not have App::Logic::Foo::new
	   $c->model('Logic::Foo')->foo() ;
	}

	1;

DESCRIPTION
	Load modules dynamicaly	like L<Catalyst::Model::DBIC::Schema> does.

MODULE
   new
       constructor

AUTHOR
       Tomohiro	Teranishi <tomohiro.teranishi@gmail.com>

THANKS
       masaki

       vkgtaro

       hidek

       hideden

LICENSE
       This library is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

perl v5.24.1			  2008-04-27Catalyst::Model::DynamicAdaptor(3)

NAME | VERSION | SYNOPSIS | DESCRIPTION | MODULE | AUTHOR | THANKS | LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Catalyst::Model::DynamicAdaptor&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help