On Fri, 29 Jan 2010, alessandro cinelli wrote: > I'm doing a huge refactor of an existing big site and i would like to port > it to symfony. > The problem is that i can't wait to full migrate the site to symfony > framework before going live, but I have to do it step by step, small > integrations and refactors like dailymotion case history. > > What is the best way to achieve that? > With a custom routing class? > With a custom htaccess file?
Is the existing site static? If yes, then you can port piece-by-piece by building each section as a module and then drop a controller into the top folder of each section. Basically the symfony tree can be anywhere on your web server (usually its a good idea to keep it outside any web-accessible folder) and your controller loads the config and dispatches the request. You will also need mod_rewrite enabled and htaccess files alongside each controller. Since you already have a site and you dont want to break URLs, then your routing should match the existing site as much as possible. We have done this successfully for a large high traffic site. Just shows how flexible symfony can be. -- -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
