GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CATALYST::MODEL::DYNAMICADAPTOR (3)

.ds Aq ’

NAME

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

CONTENTS

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.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CATALYST::MODEL::DYNAMICADAPTOR (3) 2008-04-27

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.