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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:56:23+00:00 2026-06-11T04:56:23+00:00

I have a legacy application that I would like to move over to Symfony2.

  • 0

I have a legacy application that I would like to move over to Symfony2. This application is not built in MVC, it has no PSR-0 compatibility, it is very much a legacy application in that ‘/search.php’ points to a file ‘search.php’ and the menu, headers, and footers are includes different files share.

If I could somehow plug in this application quick and dirty into Symfony2 and then begin moving pieces of over to it one at a time to the Symfony2 application architecture that would be ideal. I really would not like to make some waterfall attempt to port the whole thing over and then do some massive update in 3-6 months. Can anyone recommend a way to execute a native php script that would include things like mysql queries in a Symfony2 controller or some other best way to do this? I am currently looking at perhaps including the files in php or twig templates. Thanks!

  • 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-06-11T04:56:24+00:00Added an answer on June 11, 2026 at 4:56 am

    Consider doing it on a server level. Your web server should be able to route part of the URLs to the new website and rest of them to legacy (at least Nginx is able to do it). Once you move forward with the rewrite you’ll just need to alter URL rewrites and route additional URLs to the new application.

    Doing this in Symfony controller should be fairly easy as well (I haven’t tried this though). You’ll need a fallback route which would call action similar to the following:

    public function legacyAction()
    {
        // decide which file to include
        $legacyFile = '/path/to/legacy-app/search.php';
    
        ob_start();
    
        include($legacyFile);
    
        $content = ob_get_clean();
    
        return new Response($content);
    }
    

    It’s probably to simplistic but should demonstrate the idea.

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

Sidebar

Related Questions

I have an application which has legacy Struts actions extending org.apache.struts.StrutsActions. I would like
We have an ASP.NET MVC 4 application that links to legacy native code. The
I have a legacy VB6 application that was built using MSDE. As many client's
I currently have a database that gets updated from a legacy application. I'd like
We have an legacy application (mixture of classic ASP and ASP.net) that has a
I have a legacy application written in C , and i would like to
I have a legacy C Linux application that I need to reuse . This
I have recently started working on a legacy application that has most of its
Have a legacy LAMP application that I'm in the process of converting over to
I have a legacy application that I inherited that passes a lot of XML

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.