[Dbix-class] Deferred validation via accessors

piotr pogorzelski pp at webtel.pl
Mon Aug 2 08:36:35 GMT 2010


> I would argue that having *any* dbix create/update/delete/find etc.
> methods in a controller is bad practice.
>

I agree.

in controller i also do translation of web parameters names to business 
parameters names.

but what about user authorization check, which depends
on business data and business logic.

it should be done in controller?
(otherwise session data should be send to model as well)

--
regards
piotr



More information about the DBIx-Class mailing list