Re: [Catalyst] Accessing DB from external model

2010-11-06 Thread Mike Raynham
On 05/11/10 16:50, Darren Duncan wrote: Mike Raynham wrote: Here, the connection information is moved from MyApp::Model::DB to MyApp::DB, and then Catalyst::Model::Adaptor is used to glue MyApp::Model::DB to MyApp::DB. Is it a good idea? MyApp::Model::DB appears to be part of the Catalyst

[Catalyst] Accessing DB from external model

2010-11-05 Thread Mike Raynham
Hi, I am fairly new to all things Perl and Catalyst, and would like to know if what I am attempting to do is correct. I've recently finished reading 'The Definitive Guide to Catalyst', which has been very helpful, but I am still a little confused about separating my business logic from my

Re: [Catalyst] Accessing DB from external model

2010-11-05 Thread Octavian Rasnita
From: Mike Raynham catal...@mikeraynham.co.uk Hi, I am fairly new to all things Perl and Catalyst, and would like to know if what I am attempting to do is correct. I've recently finished reading 'The Definitive Guide to Catalyst', which has been very helpful, but I am still a little

Re: [Catalyst] Accessing DB from external model

2010-11-05 Thread Mike Raynham
On 05/11/10 10:10, Octavian Rasnita wrote: From: Mike Raynham catal...@mikeraynham.co.uk Hi, I am fairly new to all things Perl and Catalyst, and would like to know if what I am attempting to do is correct. I've recently finished reading 'The Definitive Guide to Catalyst', which has been very

Re: [Catalyst] Accessing DB from external model

2010-11-05 Thread Hernan Lopes
Mike, also, if you havent already, take a look on Catalyst::Tutorial , in my opinion its by far the best documentation to begin with catalyst. http://search.cpan.org/~zarquon/Catalyst-Manual-5.8005/lib/Catalyst/Manual/Tutorial/01_Intro.pod On 11/5/10, Mike Raynham catal...@mikeraynham.co.uk

Re: [Catalyst] Accessing DB from external model

2010-11-05 Thread Mike Raynham
On 05/11/10 11:43, Hernan Lopes wrote: Mike, also, if you havent already, take a look on Catalyst::Tutorial , in my opinion its by far the best documentation to begin with catalyst. http://search.cpan.org/~zarquon/Catalyst-Manual-5.8005/lib/Catalyst/Manual/Tutorial/01_Intro.pod On 11/5/10,

Re: [Catalyst] Accessing DB from external model

2010-11-05 Thread Darren Duncan
Mike Raynham wrote: Here, the connection information is moved from MyApp::Model::DB to MyApp::DB, and then Catalyst::Model::Adaptor is used to glue MyApp::Model::DB to MyApp::DB. Is it a good idea? MyApp::Model::DB appears to be part of the Catalyst application, so if I want to access the

Re: [Catalyst] Accessing DB from external model

2010-11-05 Thread Octavian Rasnita
From: Darren Duncan dar...@darrenduncan.net For any configuration details that might vary either per application or per deployment, make these user-configurable parameters of MyDBLib, with then each of your applications would supply arguments to it when instantiating a MyDBLib object;