Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6354103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:31:26+00:00 2026-05-24T22:31:26+00:00

We have a huge Zend Framework project, it’s basically a website in 4 different

  • 0

We have a huge Zend Framework project, it’s basically a website in 4 different languages and with a fair amount of pages. Usually my application handle 10~15 database tables and probably 5/6 controllers so I place all my model under applications/models.

The problem with that project doing the same would make copy the same models in each modules and probably make a lot of duplicate code and make the maintenance being difficult. I am wondering if it would wise to puts the models under library?

How do you people are doing in such case? some solutions, I am thinking of in my order of preference

  • put models and shared code under /library
  • make a common module and play with the auto loading to load this classes from any modules
  • dirty but possible setup some symbolic links so the files in models come all from the same source … but probably bad
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T22:31:27+00:00Added an answer on May 24, 2026 at 10:31 pm

    I keep all library code, including models, under /library. IMO, that’s what it’s there for. Then, if you need to share libraries (incl. models) between apps, you can do so with a single symlink or git submodule:

    Your local app:

    /myapp/application/
    /myapp/public/
    /myapp/library/
    /myapp/library/MyApp/
    

    Pulling in external dependencies:

    /myapp/library/OtherLib (git submodule of a separate repo)
    /myapp/library/ExtraLib (symlink to /path/to/ExtraLib/)
    

    Or:

    set_include_path(get_include_path() . ':/path/to/ExtraLib')
    

    If you separate models from the library, you’d have two mount points for every dependency.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I devlopp web applications with Zend Framework. For now, I have a huge library,
I have huge 3D arrays of numbers in my .NET application. I need to
My application based on Zend Framework and Doctrine includes > 300 files on each
What do you guys do, when you have huge project built with ant for
I don't know whether this question makes sense or not. I have huge amount
I am trying to learn about unit testing in Zend Framework. I have installed
i have huge project that contains around 200 jars, when i prepare release maven
I want to make a single page website and it will have huge content.
I have huge troubles running my cakephp application now. after upgrading vom lenny to
I have huge number of Word files I need to merge (join) into one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.