Nilson Santos Figueiredo Junior a écrit :
> On 6/29/06, Matthieu Codron <[EMAIL PROTECTED]> wrote:
>> This does not matter much in most cases except big projects where
>> business logic elements are reused in various situations around the
>> application.
>
> Then you put that logic in external regular Perl modules and make your
> controllers just use them. Pretty simple.
Sure, but I think it's cleaner to call a service (or a model) by doing
$c->model('...') (or $c->service) than to instantiate your service
directly.
Actually, after reading Matt S Trout's post, I can't think of anything
$c->service would need that $c->model doesn't have :)
--
Matthieu
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/