[symfony-users] Re: Embedding symfony components in non-symfony web pages

2008-02-18 Thread forkmantis
This is an issue I've been dealing with. I've inherited a 10 year old legacy site of thousands of pages. Unfortunately, it's on a server that has to run PHP 4. I've begun rebuilding portions of the app in symfony on a separate server. Both apps share the same database. In some cases, I've bui

[symfony-users] Re: Embedding symfony components in non-symfony web pages

2008-02-17 Thread Tom Haskins-Vaughan
Sorry I'm not sure if I was very clear: You set up a module/action in symfony to create the content for the portion of the page that you want to use symfony for. You could just export the html for the portion without the whole page decoration. Then in standard PHP, you use an include (not sure

[symfony-users] Re: Embedding symfony components in non-symfony web pages

2008-02-17 Thread Tom Haskins-Vaughan
So what if you use a PHP include to insert a portion of page that has been rendered by symfony? Balaji Srinivasan wrote: > Hi Tom > That works if the full page was served by symfony. We already use > that. But now we have come to the point where portions of the page > could be migrated to S

[symfony-users] Re: Embedding symfony components in non-symfony web pages

2008-02-17 Thread Balaji Srinivasan
Hi Tom That works if the full page was served by symfony. We already use that. But now we have come to the point where portions of the page could be migrated to Symfony. In that case the full page will be served by the PHP code but we want portions of it to be rendered by Symfony. Balaji

[symfony-users] Re: Embedding symfony components in non-symfony web pages

2008-02-17 Thread Tom Haskins-Vaughan
Hi Balaji, I've thought about this for an app I wrote in PHP that's in use at the moment. I was thinking of putting symfony in a sub directory of the web root: www.domain.com/symfony/ There were going to be session issues, that I think someone on the list suggested possible solutions for, but