I'd say in the form class, definitely not in action.

Action should just be the glue between model, form, and user request

On Sat, Sep 5, 2009 at 2:30 PM, Jake Barnes<lkrub...@geocities.com> wrote:
>
>
> No one has any thoughts on this? I'm basically asking about the
> application of the MVC ideal - what is pure, in terms of MVC. To put
> the resizing code in the form class or in the action? Or in the
> validator?
>
>
> On Sep 3, 1:35 am, Jake Barnes <lkrub...@geocities.com> wrote:
>> I've a form that allows users to upload images that can represent them
>> on the site. I need to crop and resize the images to be sure they are
>> all the same size. I am curious where do most Symfony developers put
>> their code for resizing images? In the form class? I assume it is bad
>> practice to do this in the action?
> >
>



-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to