The controller just acts as the middle man between the database (modes
and business logic) and the templates (views and helpers).

I would suggest looking at some example apps/plugins. For example, my
forum plugin: http://github.com/milesj/cake-forum/tree/master/controllers/

On Sep 22, 5:08 am, Poliane Brito <poli.br...@gmail.com> wrote:
> Are u serious? GoD! I always did logic in controller and in model only
> gets/sets and validation data.
> wow, I have to go back to the MVC books o.o
>
> On Tue, Sep 21, 2010 at 5:13 PM, Miles J <mileswjohn...@gmail.com> wrote:
> > No because this is model (business) logic. The controller is only used
> > to validation specific data and to set data (from the model) to the
> > view.
>
> > On Sep 21, 6:55 am, Poliane Brito <poli.br...@gmail.com> wrote:
> > > Sorry guys, I'm relative new on CakePHP... but move a certain method to
> > > model, isn't hurt MVC rules?
> > > Regards...
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>For
> >  more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to