zend-framework doctrine, and mvc pattern: what kind of layer should connect data between models and forms?
问题 I am learning Zend Framework and Doctrine. I am wondering what is the best practice to connect forms to models and vice versa. In some cases it is handy to load data from model in form class. Lets say a very unique class which use many models. In other cases it is convenient to have methods in model class which prepares data for forms. Lets say it could have a method which returns an array prepared for select-options element, so this method will be useful for many forms. I would like to have