new Class::DBI::DFV based model
new test to check everything compiles
Model inheritance re-organised
+ New config method : additional, for stashing additional info, especially from additional_data method
+ new warn method in maypole/request class/object, over-ridden by Apache::MVC, etc or own driver
2.11 Mon 31 July 2006
config => $class->config,
}, $class;
- $self->stash({});
- $self->params({});
- $self->query({});
- $self->template_args({});
- $self->args([]);
- $self->objects([]);
-
+ $self->stash({});
+ $self->params({});
+ $self->query({});
+ $self->template_args({});
+ $self->args([]);
+ $self->objects([]);
return $self;
}
return $status;
}
+=item warn
+
+$r->warn('its all gone pete tong');
+
+Warn must be implemented by the backend, i.e. Apache::MVC
+and warn to stderr or appropriate logfile.
+
+You can also over-ride this in your Maypole driver, should you
+want to use something like Log::Log4perl instead.
+
+=cut
+
+sub warn { }
+
=item get_request
You should only need to define this method if you are writing a new
__PACKAGE__->mk_accessors(
qw( view view_options uri_base template_root template_extension model
loader display_tables ok_tables rows_per_page dsn user pass opts
- application_name)
+ application_name additional)
);
# Should only be modified by model.
=head2 Adding additional configuration data
+You can use the 'additional' attribute for stashing additional info, especially from additional_data method,
+i.e. $r->config->additional({foo=>bar});
+
+Or..
+
If your modules need to store additional configuration data for their
own use or to make available to templates, add a line like this to your
module: