[Catalyst] best practices - model or controller ?

2008-10-04 Thread Yves Räber
Hello, I want to implement something really simple : log some events into a database. And I already can think of three way to do it, but because this will be used very frequently I'd like to know what's the best solution. For me the best solution would be to have little overhead, and a really

Re: [Catalyst] best practices - model or controller ?

2008-10-04 Thread Tobias Kremer
On 04.10.2008, at 08:16, Yves Räber wrote: I want to implement something really simple : log some events into a database. And I already can think of three way to do it, but because this will be used very frequently I'd like to know what's the best solution. For me the best solution would be to

Re: [Catalyst] best practices - model or controller ?

2008-10-04 Thread Peter Karman
Yves Räber wrote on 10/4/08 1:16 AM: Hello, I want to implement something really simple : log some events into a database. And I already can think of three way to do it, but because this will be used very frequently I'd like to know what's the best solution. For me the best solution would

Re: [Catalyst] best practices - model or controller ?

2008-10-04 Thread Eden Cardim
On Sat, Oct 4, 2008 at 9:31 AM, Peter Karman [EMAIL PROTECTED] wrote: You don't need a real plugin unless you need to override the dispatch process. But I often put convenience methods in my MyApp.pm base class. So implement your idea #1 and then add: package MyApp; sub logdb { my $c