[Catalyst] Authentication in a Many Database Scenario (again)

John Romkey romkey at romkey.com
Tue May 15 19:29:27 GMT 2012

On May 15, 2012, at 3:11 PM, <scott at simpzoid.com> <scott at simpzoid.com> wrot=
> I=92d like to offer users their own database (so that their own data is s=
eparate from other users) but use the same MVC code for all the user databa=
ses. Following some helpful advice from this forum I have found the documen=
tation for ACCEPT_CONTEXT but unfortunately I don=92t have the smarts to un=
derstand the documentation, could someone please explain some things to me?

Forgive me if I've missed something but why not just write your model code =
and then reuse it by using it as a base class for each of your user databas=

So if your reusable model is  EasyAC::Model::DB then you would just reuse i=
t by create another model that extends it:

package AnApp::Model::DB;

use Moose;
use namespace::autoclean;
BEGIN { extends 'EasyAC::Model::DB'; }


Put the config information for that superclass in the config file for that =
application and you're all set.

There should be more information on how to do this in http://search.cpan.or=

	- john romkey

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20120515/8cb0c=

More information about the Catalyst mailing list