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 7564621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:56:56+00:00 2026-05-30T13:56:56+00:00

In school web projects that I have done until now I have build my

  • 0

In school web projects that I have done until now I have build my applications with a 3-tier approach.
A data layer, an application and a presentation layer.
I have used this architecture with python and java and I want to use it also with php.
I was quite strict in the communication between layers as these were the requirements of the assignments and I can say that I find it quite good, as when I tried once to switch from mySQL to Mongo db, it was quite easy. I just had to change the code inside the function of my Data Access Object.

As I said before I want to write a bigger application now in php and I downloaded and installed the Symfony2 Framework, which is an MVC framework. My intentions is to test the application with MySQL initial and then switch and test it with Redis.

So myy question is:
Can I use the functionality and all the “goodies” of the framework to write a 3 tier architecture application and how could I separate the layers?

  • 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-30T13:56:57+00:00Added an answer on May 30, 2026 at 1:56 pm

    Symfony2 isn’t an MVC framework per se, it’s just a bunch of loosely coupled components working nicely together. There is a blog post about this from the lead developer.

    You can choose how fine grained your bundles are, for example you can create a bundle with pure domain objects, business logic and interfaces for repositories, DAOs whatever you want. Optionally you can provide mapping configuration of your ORM of choice. Now you can create bundles for the data access strategies, like a bundle working with doctrine, other with redis, implementing your repository interfaces.

    So you can go crazy about fine grained bundles structure, but for simple applications you can just put all of these under /src, or just create a bundle with all the data access strategies implemented there, and choosing one in your application with the bundles’ configuration.

    Studying other bundles’ approaches also helps to get familiar with best practices, FOSCommentBundle or FOSUserBundle could be a good place to start.

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

Sidebar

Related Questions

i have developed an web application[ERP FOR A SCHOOL].i have given the build for
I have developed a PHP-MySQL web application, which is a school-based project. My client
I have been using MySQL for my school projects, personal web site for years.
I have an old school ASP (note: not ASP.NET) web site that has a
i'm busy with a school project and I have to build a web app.
I have a Java web application I’m developing for a school project. There’s a
I am making a Grails application for a school project and I have run
I have a fairly large application, where my data access strategy has always been
Still working on a web application as a school project, and it just seems
I have a few projects coming up that have a number of endpoints or

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.