Thanks for the reply I was planning on having 3 folders in my library folder: 1. the Zend folder
2. a core folder (which I intend putting reusable classes, eg authentication etc) 3. an application specific library, for classes specific to this project. I was planning on having 2 folders in the models folder: 1. a core folder, containing the object classes, factories & database accessors for the parts of the site / database structure which I can share with other sites in the future. 2. an application specific folder, same as the one above, containing the object classes, factories & database accessors for the parts of the site / database structure. My question really is where is the most logical place to store my object classes & factories, in the library or in the model folder? My initial thought would be in the model as they are for interacting with data. And then keep processing etc in the library. Thanks Matthew Weier O'Phinney-3 wrote: > > -- sinkingfish <[EMAIL PROTECTED]> wrote > (on Wednesday, 08 October 2008, 02:43 AM -0700): >> Im currently in the early stages of setting up a zf based site. I want to >> put out a question about where to store different classes. I have object >> classes (eg a user class with getters and setters), I have factory >> classes >> for instantiating the object classes and I have database classes for >> accessing the database. >> >> What Im wondering is where to save these files? Do they all belong in the >> models folder, or do just the database classes belong there? I also have >> a >> library folder containing the zend framework and my own personal library >> for >> the project. Do the object classes and factorys belong in the library >> folder >> too? > > It depends. Are these classes ones that you'll re-use between projects, > or are they application-specific? or are they specific to a given > application module? > > Typically, the rule of thumb is that if they are specific to the > application or application module, they go in the models directory; if > they are something you'll re-use between applications and modules, they > would go in your library. > > -- > Matthew Weier O'Phinney > Software Architect | [EMAIL PROTECTED] > Zend Framework | http://framework.zend.com/ > > -- View this message in context: http://www.nabble.com/Where-to-store-classes--Model--tp19875577p19878021.html Sent from the Zend Framework mailing list archive at Nabble.com.
