1 package Maypole::Config;
2 use base qw(Class::Accessor::Fast);
9 __PACKAGE__->mk_accessors(
10 qw( view uri_base template_root model loader display_tables ok_tables
11 rows_per_page dsn user pass opts application_name document_encoding
15 # Should only be modified by model.
16 __PACKAGE__->mk_ro_accessors(
17 qw( classes tables table_to_class
25 Maypole::Config - Maypole Configuration Class
29 This class stores all configuration data for your Maypole application.
37 The view class for your Maypole Application. Defaults to "Maypole::View::TT"
41 This is the uri base that should be appended to your application when maypole
46 This is where your application can find it's templates.
50 This is the number of rows your application should display per page.
56 These are the tables that are public to your maypole application
60 These are the tables that maypole should care about
64 The model class for your Maypole Application. Defaults to "Maypole::View::CDBI"
68 This is the loader object. It's set up by the CDBI model if it's not initialized before setup.
72 This config variable contains a list of your view classes. This set up by the
73 model class, and should not be changed in the view or the config.
76 The DSN to your database. Follows standard DBD syntax.
80 Username to log into the database with
84 Password for database user.
88 Other options to the dbi connect call.
96 Sebastian Riedel, c<sri@oook.de>
100 Simon Cozens, C<simon@cpan.org>
104 You may distribute this code under the same terms as Perl itself.