On 09/10/2007, Noé Froidevaux <[EMAIL PROTECTED]> wrote: > > Hi! > I make my work diploma with zend framework. So, I would like to do the > best practices. > > I use the MVC model. When you make a function which is called by an > action, where do you write this function? directlly in the controller? > Do you make your own library?
See http://framework.zend.com/manual/en/zend.controller.actionhelpers.html And when you make a custom sql request, where you write this request? > In function in a model? Do you make a new model for that? Do you make > a function in a class of your own library? You can just write that in your controller, and it should interact with a model. I think you should see http://framework.zend.com/manual/en/zend.db.statement.html but perhaps someone more skilled than me should answer it. Noe > -- Vincent
